File download from MSoffice 365 cloud in LInux using Wget command

satyarankireddy

New Member
Hello Experts,

I am trying to download a file from msoffice 365 cloud using wget command in Linux. Request to has to redirect to via proxy and reach to destination URL.

I have used below command to download file but no luck keeps on getting 403 error.


http_proxy=http://10.10.19.143:8080/ wget --http-user=[email protected] --http-password=xxxxxx-p -r -l 8 --no-remove-listing -P . https://comapny.sharepoint.com/kites/analysis/Shared Documents/cbu Data Warehouse uploads/cbu kites Departments/test.csv

ERROR message:
Connecting to 10.10.19.143:8080... connected.
Proxy request sent, awaiting response... 403 FORBIDDEN
2019-10-10 14:21:15 ERROR 403: FORBIDDEN.

can anyone help on this ?

Thanks,
RR
 


atanere

Well-Known Member
Crazy wild guess here, but could your URL's need to be "company" instead of "comapny" ???

Also, "Shared Documents/cbu Data Warehouse uploads/cbu kites Departments" may be a problem... web addresses typically do not like to use spaces. This article says spaces in a URL should use a "+" character or "%20". Some browsers may be smart enough these days to recognize a space, but I'm not sure. And the wget command may not be as smart as a browser.
 
Last edited:

satyarankireddy

New Member
Crazy wild guess here, but could your URL's need to be "company" instead of "comapny" ???

Also, "Shared Documents/cbu Data Warehouse uploads/cbu kites Departments" may be a problem... web addresses typically do not like to use spaces. This article says spaces in a URL should use a "+" character or "%20". Some browsers may be smart enough these days to recognize a space, but I'm not sure. And the wget command may not be as smart as a browser.
hi , I have modified url manually URL, due to restriction. You can ignore URL part actual URL was different.
 

JulienCC

Active Member
Hi,

We are missing a lot of context. Unless there's someone arround who already played with Office365 we will need more details.

Are you sure you can acces these files with a simple web auth ? Did you try in a web browser ? That would be surprising to me that a company like microsoft doesnt use a more complex auth mechanism, like OAuth.

Can you share with us the technical documentation you were provided that states that web auth should work ?
 

Members online


Latest posts

Top