CFHTTP
Creating an HTTP request with CFHTTP requires four steps:
-
Generate a CFHTTP message object using the
CFHTTPMessageCreateRequest
function. -
Set the body of the message using the function
CFHTTPMessageSetBody
. -
Set the message's headers using the
CFHTTPMessageSetHeaderFieldValue
function. -
Serialize the message by calling the function
CFHTTPMessageCopySerializedMessage
.