cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

RE: PHP/Curl: Any Way to Follow a REFRESH Meta Tag?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 15 May 2001 20:42:06 +0200 (MET DST)

On Tue, 15 May 2001, Keller, Bryan wrote:

> Ha! A solution.

Great!

> when you use the CURLOPT_HTTPHEADER option, do you put all of your header
> info in there (including cookies and authentication, or can it work with
> other CURLOPTs...in PHP)?

You can mix them in most cases.

But generally, if you specify the same header with a specific option and then
have set it again with CURLOPT_HTTPHEADER, the CURLOPT_HTTPHEADER one is the
one that will appear in the request.

For cookies, you'll get both the ones you set in the CURLOPT_HTTPHEADER and
the ones you set with the specific cookie option.

This isn't 100% documented, CURLOPT_VERBOSE is your friend.

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-05-15