Manish replied to the topic Download an Raw file from BITBUCKET Project… in
PowerShell Forum 4 years, 1 month ago
this is also an random url….exact url i support you wouldn’t be able to access…since it is an private repo….
that’s why mentioned any pseudo url…here is the deal…think about it…Invoke-WebRequest -Credential <<manish.garg>> -Uri <<HERE I’ll GIVE BITBUCKET REPO URL>> -OutFile <<FILENAME>>
HERE FILE IS DOWNLOADED BUT AS HTML NOT AS THE RAW ONE…
CAN YOU PIN POINT IN ABOVE COMMAND WHAT I AM DOING WRONG WHICH IS NOT LETTING THE DOWNLOAD PROPERLY.Manish replied to the topic Download an Raw file from BITBUCKET Project… in
PowerShell Forum 4 years, 1 month ago
Invoke-WebRequest -Credential manish.garg -Uri https://api.bitbucket.org/1.0/repositories/company/project/raw/HEAD/some/special/file.txt-OutFile .file.txt
Check here!!! XYZ i just put any random user name….it is not authentication problem.
Michael – how do we download an single file( in the raw form) from bitbucket project(git repo)Manish started the topic Download an Raw file from BITBUCKET Project… in
PowerShell Forum 4 years, 1 month ago
Hey there?
Guys i am trying to hit an wall ( In powershell i am Trying to download an file( say simple text file) from bitbucket private repository however i am able to download the file , though it is coming as an HTML one not as the raw one).
can someone please help me or point it out where i am lacking in the command.Invoke-WebRequest -Credential XYZ -Uri https://api.bitbucket.org/1.0/repositories/company/project/raw/HEAD/some/special/file.txt-OutFile .file.txt
file.txt is downloaded as HTML not as the raw one.
Manish joined the group
PowerShell 4 years, 1 month ago
Manish posted an update 4 years, 1 month ago
Hey there?
Guys i am trying to hit an wall ( In powershell i am Trying to download an file( say simple text file) from bitbucket private repository however i am able to download the file , though it is coming as an HTML one not as the raw one).
can someone please help me or point it out where i am lacking in the command.Invoke-WebRequest -Credential XYZ -Uri https://api.bitbucket.org/1.0/repositories/company/project/raw/HEAD/some/special/file.txt -OutFile .file.txt
file.txt is downloaded as HTML not as the raw one.
Manish became a registered member 4 years, 1 month ago
Manish's profile was updated 4 years, 1 month ago