• 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.

  • 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)

  • 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 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

© 4sysops 2006 - 2022

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account