Subject: Re: CFNetwork POST with redirect.
> I have been trying to get
POST with AutoRedirect to work using the CFNetwork
> interface (to a HTTPS server). However I have been unsuccessful and continue
> to get unexpected results. I have Windows code that does work, and here is
> what I see when I run that code and connect to the server: Watching traffic on
> the server it receives the POST, then issues a redirect. In Windows it then
> does a GET on the redirect.
>
> On a Mac using CFNetwork with POST with AutoRedirect and connecting to the
> same server I see the POST, but then on the redirect the client issues another
> POST which then results in an undesired url. Is there a way to stop the
> subsequent POSTs or force them to be GETs? I know I could turn off
> AutoRedirect but that isn't the desired behavior.
>
> Perhaps related... do CFNetwork interfaces automatically handle cookies? The
> server is also trying to set a cookie and I am wondering if this is
also the
> reason the server doesn't continue the appropriate redirection.
>
> - Josh
Have you considered using libcurl instead?
--
Nathan S. Duran
Principal
KHI Ltd. Co., LLC
www.khiltd.com