Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
Experts Most Trusted Topic
how to raw post using curl in php
raw post using curl in php ¬†using -'php,post,curl,put'
How can I do a RAW POST in PHP using cURL?
Raw post as in without any encoding, and my data is stored in a string. The data should be formatted like this:
... usual HTTP header ...
89c5fdataasdhf kajshfd akjshfksa hfdkjsa falkjshfsa
ajshd fkjsahfd lkjsahflksahfdlkashfhsadkjfsalhfd
ajshdfhsafiahfiuwhflsf this is just data from a string
more data kjahfdhsakjfhsalkjfdhalksfd
One option is to manually write the entire HTTP header being sent, but that seems less optimal.
Anyway, can I just pass options to curl_setopt() that say use POST, use text/plain, and send the raw data from a $variable?
Sep 16, 2015
to add a comment.
Related Hot Questions
Government Jobs Opening