Ross Litscher <[EMAIL PROTECTED]> writes:
> Hi. When trying to use wget --spider, for some files it has the line
> 
> Length: unspecified [text/html]
> 
> What are possible reasons that this occurs? 

Usually happens on dynamic output, as from a CGI.

> The files are not [text/html] either. here is some output incase it
> helps. the problem occured on 1.5.3 and 1.6.
> 
> 
> ---request end---
> HTTP request sent, awaiting response... HTTP/1.1 200 OK
> Date: Tue, 09 Jan 2001 22:09:41 GMT
> Server: Apache/1.3.12 (Unix) PHP/4.0.4
> X-Powered-By: PHP/4.0.4
> Connection: close
> Content-Type: text/html
> 
> 
> 
> then, when i try running wget to retrieve the file, it only retrieves a
> few hundred bytes, and the content is a bunch of html:
> 
> <br>
> <b>Warning</b>:  Unexpected character in input:  ' in
> <b>/usr/local/apache/htdoc
> s/r_temp/d80.asf</b> on line <b>276</b><br>
> <br>
> <b>Parse error</b>:  parse error in
> <b>/usr/local/apache/htdocs/r_temp/d80.asf</
> b> on line <b>276</b><br>
> 
> 
> 
> Note that the file i'm trying to retrieve is really not an html file.
> Any ideas as to what is happening here? 

Looks like what you're getting is an error page.  The thing about the
unexpected character makes it sound like you or wget is doing some incorrect
quoting on the URL.  Can't help you more without more detail (like -d output
or at least the URL you're trying to download).

---------------------------------------------------------------
Dan Harkless            | To help prevent SPAM contamination,
GNU Wget co-maintainer  | please do not mention this email
http://sunsite.dk/wget/ | address in Usenet posts -- thank you.

Reply via email to