Mike,
 
If you bring up the page (http://www.clickthecity.com/tv/main.asp?day=0&daypart=-1&catid=0&tv=4&cblid=2&x=23&y=10)
in your browser, at the bottom you will see
"Microsoft _vbscript_ runtime error '800a01f4'
Variable is undefined: 'varScriptName'
/inc2/footer.asp, line 6"
 
With --debug option we also get "Content-Length: 54546" in the response, which is 54KB for a 500 error !
 
my guess is that you get some data back, but then the server throws a 500 error when it encounters the script above, which probably is included in all their pages.  The browsers display the cached data, but wget apparently does not operate that way.
 
i'm running wget 1.9.1 on windows xp.
 
Ranjit Sandhu
SRA
 


From: Mike Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 10:38 AM
To: [EMAIL PROTECTED]
Subject: Wget not getting a page which works fine in browser. Cookies on, off tried everything I can think of. Debug log included.

Hi,
 
I am having a problem with wget getting a webpage. For ease of specificness (is that a word?) we can use this url: http://www.clickthecity.com/tv/main.asp?day=0&daypart=-1&catid=0&tv=4&cblid=2&x=23&y=10 (this is the URL I used for the debug log below). However, any url on that site which requires main.asp?xxxxxxxx doesn't work. This page appears just fine under any browser. What I have tried:
 
1) Its not a cookie problem. For one, I can get the page to load just fine using IE or firefox with cookies disabled. For another, I have tried to run wget with cookies on, off. Tried preloading my exported IE cookies and preloading my firefox cookie.txt file (with the cookies set by the site, of course). Tried using wget's saved cookies back on it and every other way to force cookies into the wget process. Didn't fix it.
 
2) Tried different browser agent headers (firefox, IE, opera, mozilla, and from different operating systems).
 
3) Tried using the wget's post command. This downloads the main.asp auto file which gives a listing of cable providers (you will understand what I mean if you load the original page I am using as an example, its a TV listing site)
 
4) Tried forcing HTML eventhough I am not sure what that is. :)
 
5) tried loading evey other 'main.asp?' argument I can find on that site trying to see what the problem is.
 
Everything failed with the 500 internal error, but yet the page loads fine in any browser.
 
Heres the debug log:
 
DEBUG output created by Wget 1.10.2 on Windows.
--22:20:08-- http://www.clickthecity.com/tv/main.asp?day=0&daypart=-1&catid=0&tv=4&cblid=2&x=23&y=10
=> [EMAIL PROTECTED]&daypart=-1&catid=0&tv=4&cblid=2&x=23&y=10'
Resolving www.clickthecity.com... seconds 0.00, 203.167.103.235
Caching www.clickthecity.com => 203.167.103.235
Connecting to www.clickthecity.com|203.167.103.235|:80... seconds 0.00, connected.
Created socket 1916.
Releasing 0x003f5b70 (new refcount 1).
---request begin---
GET /tv/main.asp?day=0&daypart=-1&catid=0&tv=4&cblid=2&x=23&y=10 HTTP/1.0 User-Agent: Wget/1.10.2 Accept: */* Host: www.clickthecity.com Connection: Keep-Alive ---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 500 Internal Server Error Connection: keep-alive Date: Tue, 12 Sep 2006 14:20:13 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 54622 Content-Type: text/html Set-Cookie: personalize=cablelineup=2; expires=Thu, 31-Dec-2009 16:00:00 GMT; path=/tv Set-Cookie: ASPSESSIONIDSCBASAQQ=BBCBHCLCMGJLHHFKIGODANHP; path=/ Cache-control: private ---response end---
500 Internal Server Error
Registered socket 1916 for persistent reuse.
Stored cookie www.clickthecity.com -1 (ANY) /tv <permanent> <insecure> [expiry 2010-01-01 00:00:00] personalize cablelineup=2
Stored cookie www.clickthecity.com -1 (ANY) / <session> <insecure> [expiry none] ASPSESSIONIDSCBASAQQ BBCBHCLCMGJLHHFKIGODANHP
Disabling further reuse of socket 1916.
Closed fd 1916
22:20:13 ERROR 500: Internal Server Error.
 
What am I doing wrong? Please help? Thank you!

Send instant messages to your online friends http://uk.messenger.yahoo.com

Reply via email to