wget fails but opening in browser succeeds. How?

4

1

I was trying to download a pdf from the intel website at this address. When I open it through the browser(google-chrome) there seems to be no problem in viewing it or storing it on the my hard disk.
But when I tried to
wget http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-manual-325462.pdf,
I got the following error:

Connecting to www.intel.com|128.230.11.57|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2012-03-12 16:12:25 ERROR 403: Forbidden.
FYI, There was no login required on the website. Why would this happen?

Lelouch Lamperouge

Posted 2012-03-12T20:16:40.603

Reputation: 214

1User-agent filtering? – billc.cn – 2012-03-12T20:19:05.390

Maybe the server handles command-line user agents differently than "normal" browsers? – slhck – 2012-03-12T20:19:35.217

Answers

8

In this case the site is checking User-Agent. wget --user-agent=Safari ... downloads the file without problem. (Everyone fears blocking Apple's customers, apparently.)

Kyle Jones

Posted 2012-03-12T20:16:40.603

Reputation: 5 706

I try to download this file failed:wget --user-agent=Safari https://code.ros.org/trac/wg-ros-pkg/raw-attachment/ticket/5069/rein_cmakelists2.patch

– sam – 2012-10-08T02:22:22.073

How to solve that problem? Thank you~ – sam – 2012-10-08T02:23:33.977

1You should ask a new question – Lelouch Lamperouge – 2013-03-14T04:23:58.337