Friday, September 30, 2011

http download without a browser

I was trying to download some journal article but library's connect from home feature seems having a problem. OK, I can ssh into my machine at school, but my Windows laptop does not give an easy way to launch X. How do I use only terminal to emulate a click on download pdf? At this point wget comes into mind.

The first attempt, wget ..., returns HTTP 403 refused.

Maybe the webserver just don't like wget?

a google search returns something helpful. Of course wget is on the not wanted list, but you can pretend you are a browser.

wget -U firefox http://.../full.pdf

This works.

No comments:

Post a Comment