I'm trying to download multiple pdf files f开发者_运维问答rom a web page (I'm using Mac OS X 10.6.1). Here is a example what I'm getting (www.website.org is just for example):
~> wget -r -A.pdf http://www.website.org/web/
--2009-10-09 19:04:53-- http://www.website.org/web/
Resolving www.website.org... 208.43.98.107
Connecting to www.website.org|208.43.98.107|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2009-10-09 19:04:54 ERROR 403: Forbidden.
~>
How can I overcome this 403 error? Should I use curl instead?
Perhaps you don't have permission to access the directory http://www.website.org/web/
. Use this link in your web browser and see if you are redirected to a more specific URL. Then use that URL as input for wget
.
精彩评论