CFNetwork POST with redirect.
CFNetwork POST with redirect.
- Subject: CFNetwork POST with redirect.
- From: Joshua <email@hidden>
- Date: Sun, 29 Apr 2007 06:50:33 -0700 (PDT)
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden