• 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
Re: CFNetwork, HTTP and POST messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFNetwork, HTTP and POST messages


  • Subject: Re: CFNetwork, HTTP and POST messages
  • From: David Lalonde <email@hidden>
  • Date: Fri, 16 Dec 2005 11:24:36 -0500

Hello All,

Thanks to your help, my problem is now resolved.

Becky Willrich's instruction (quoted below) allowed me to see post data when using tcpflow (Great utility! Thanks again Jim!). It looks like one should set the "Content-Type" header field to "application/x-www-form-urlencoded" when posting data to a WEB server (Apache), otherwise the server does not pass the POST data to the PHP page.

You need to configure the request BEFORE creating the stream - the two CFReadStreamCreate calls will take a copy of the request. That's probably why the body of the request is empty. Just move the CFHTTPMessageAddAuthentication(), CFHTTPMessageSetHeaderFieldValue(), and CFHTTPMessageSetBody() calls to prior to the CFReadStreamCreate() calls.

Hope that helps,
REW

_______________________________________________ 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
  • Prev by Date: Re: URLAccess Stalls
  • Next by Date: How do I change the MTU setting for versions of MAC OS 8.6?
  • Previous by thread: Re: CFNetwork, HTTP and POST messages
  • Next by thread: How do I change the MTU setting for versions of MAC OS 8.6?
  • Index(es):
    • Date
    • Thread