CFHTTP

 Creating an HTTP request with CFHTTP requires four steps:

  1. Generate a CFHTTP message object using the CFHTTPMessageCreateRequest function.

  2. Set the body of the message using the function CFHTTPMessageSetBody.

  3. Set the message's headers using the CFHTTPMessageSetHeaderFieldValue function.

  4. Serialize the message by calling the function CFHTTPMessageCopySerializedMessage.

原文地址:https://www.cnblogs.com/wustlj/p/2359152.html