Avatar of adimit19
adimit19
Flag for Canada

asked on 

CURL GET Raw File from BitBucket Repository with security

I am trying to get a raw file from a bitbucket repository using curl with the following commands:

curl  -L -O  https://user:password@bitbucket.org/username/repository/branch/HEAD/filename.txt
curl  -L -O  https://user:password@bitbucket.org/username/repository/branch/raw/filename.txt

I have a file committed to the master branch called filename.txt

I want to get the raw version of the above file. What code do i need to get that? All I get from these commands is the HTML code that the page contains
* CurlHTML* terminal* Bitbucket

Avatar of undefined
Last Comment
adimit19

8/22/2022 - Mon