|
Posted by Janwillem Borleffs on 07/15/06 20:16
mindwarp wrote:
> fsockets with fputs($gh, "HEAD $hpath HTTP/1.0\n\n");
> Doesn't like files in sub directories.
>
The newlines should be replaced with CRLF (\r\n\r\n), but besides that, this
should work fine.
It's possible that you are using windows-style slashes (\some\dir), in which
case you sould replace them with forward slashes (/some/dir).
You could also use GET and just read the first line to get the status code
and disconnect immediate after it.
JW
Navigation:
[Reply to this message]
|