wget returns HTTP 302 found and does not download all content of webpage
Hi all,
I am using wget to download some webpages, which involve a redirect (HTTP 302). But it seems that wget doesn’t support url redirect, or may be i am missing some option. For example, at my location, www.google.com redirects to www.google.de
Now If i use the url http://
*******
user:/test> wget -S -t 1 -nd -E --user-
asking libproxy about url 'http://
libproxy suggest to use 'direct://'
--2012-01-04 16:03:57-- http://
Resolving www.google.com... 173.194.69.103, 173.194.69.104, 173.194.69.105, ...
Connecting to www.google.
HTTP request sent, awaiting response...
HTTP/1.0 302 Found
Location: http://
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Set-Cookie: PREF=ID=
Date: Wed, 04 Jan 2012 15:03:57 GMT
Server: gws
Content-Length: 218
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Connection: Keep-Alive
Location: http://
asking libproxy about url 'http://
libproxy suggest to use 'direct://'
--2012-01-04 16:03:57-- http://
Resolving www.google.de... 173.194.69.99, 173.194.69.103, 173.194.69.104, ...
Reusing existing connection to www.google.com:80.
HTTP request sent, awaiting response...
HTTP/1.0 200 OK
Date: Wed, 04 Jan 2012 15:03:57 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: PREF=ID=
Set-Cookie: NID=54=
P3P: CP="This is not a P3P policy! See http://
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Length: unspecified [text/html]
Saving to: “index.
[ <=> ] 8,892 --.-K/s in 0.02s
2012-01-04 16:03:57 (440 KB/s) - “index.
FINISHED --2012-01-04 16:03:57--
Downloaded: 1 files, 8.7K in 0.02s (440 KB/s)
*******
If i use http://
Downloaded: 6 files, 55K in 0.06s (849 KB/s)
Please note the difference between downloaded content in case of redirect and no redirect. Same happens with any other url when it involves a redirect with HTTP status code 302. i.e. only 1 html file is downloaded in case of redirect.
Kindly suggest me the possible solution of this error. Is it really an error or am i missing something?
P.S. I have opensuse version 11.4 and wget version: GNU Wget 1.12
Regards..
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu wget Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Umair rahim for more information if necessary.