Re: Setting multiple headers in an outgoing request

Gerd Stolpmann <[email protected]> Sat, 02 Jul 2005 15:13:17 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Am Samstag, den 02.07.2005, 14:07 +0100 schrieb Richard Jones:
> 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).

Oops. This was overlooked. I'll include that soon.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
[email protected]          http://www.gerd-stolpmann.de
------------------------------------------------------------




-------------------------------------------------------
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