cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: using cURL

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Fri, 30 Aug 2002 09:10:02 -0400

> /usr/local/cust/curl -D "/tmp/10307121693d6f6b69dc2f4" -H "GET /
> HTTP/1.0" -H "User-Agent: Snoopy v0.94" -H "Host: www.mcstools.com"
> -H "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"
> https://www.mcstools.com/

How about:

 curl -D "/tmp/xxxxx" -A "Snoopy v0.94"
 -H "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"
 https://www.mcstools.com/

The '-H "Host: www.mcstools.com"' is inserted by curl based on your URL.

A User-Agent is more correctly specified with the -A command.

The "GET ..." is not a "HEADER", but rather is the request itself. It's
also specified by curl based on your URL.

--Kevin

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r
Received on 2002-08-30