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.
 

Members online

No members online now.

Top