Re: netclient ignores #set_redirect_mode method

Gerd Stolpmann <[email protected]> Tue, 28 Jun 2005 12:35:08 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
I cannot follow you. There are two versions of netclient: 0.3 and 0.90.
The latter is a total rewrite. The latter supports #set_redirect_mode.
The code snippet you posted is from netclient-0.3 that never had such a
feature.

Gerd

Am Donnerstag, den 23.06.2005, 12:39 +0100 schrieb Richard Jones:
> Http_client.message seems to ignore the #set_redirect_mode method.
> Checking the code seems to prove this:
> 
>           match code with
>             (301|302) ->
>               (* Follow redirections for GET and HEAD requests *)
>               begin
>                 let m = req # get_req_method() in
>                 if m = "GET" or m = "HEAD" then
>                   try
>                     let location = req # assoc_resp_header "location" in
>                     req # init_query () location;
>                     continue := true
>                   with Not_found -> ()
>               end
> 
> Unfortunately this is a show-stopper for us because we want to get at
> some cookies sent in the original response (Netclient doesn't support
> cookies either so we are having to implement cookies ourselves).
> 
> Rich.
> 
-- 
------------------------------------------------------------
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