curl-users
Re: [cUrl] help for http request when using cUrl
Date: Mon, 7 Apr 2003 08:26:33 +0200 (CEST)
On Mon, 7 Apr 2003, [ks_c_5601-1987] ¹Ú³²±Ô wrote:
> When using cURL, I can get Http Header from response like this :
>
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Fri, 04 Apr 2003 04:56:25 GMT
> Content-Type: image/gif
> Accept-Ranges: bytes
> Last-Modified: Fri, 30 Jun 2000 10:59:25 GMT
> ETag: "f694d64082e2bf1:acd"
> Content-Length: 1281
>
> But, some Http Header from response don't have some fields like
> File-Length, Last-Modified. I want to know is how cURL sends request. Does
> it send request with "File-Length, Last-Modified" WANTED?
Use -v and you'll see how the request looks like.
In short: no, the request just says 'give me that resource' and servers
respond differently.
You'll find all the details in RFC2616: http://curl.haxx.se/rfc/rfc2616.txt
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/Received on 2003-04-07