Setting multiple headers in an outgoing request

Richard Jones <[email protected]> Sat, 2 Jul 2005 14:07:46 +0100
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
How do I send multiple identically named headers in an outgoing
request?  At the moment I'm doing:

  List.iter (fun cookie -> msg#set_req_header "Cookie" cookie) cookies;

However it appears that each call to set_req_header overrides the
previous header - resulting in only one outgoing cookie (I need to
send four).

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click