• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CFNetwork POST with redirect.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CFNetwork POST with redirect.
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: CFNetwork HTTPS
  • Next by Date: Re: CFNetwork POST with redirect.
  • Previous by thread: Re: CFNetwork HTTPS
  • Next by thread: Re: CFNetwork POST with redirect.
  • Index(es):
    • Date
    • Thread