Answer the question
In order to leave comments, you need to log in
How to pass php curl xml post request?
In general, such a problem can not send a php request equivalent to
curl -d 'app_id=APP_ID' -d 'sign_data=SIGN_DATA' -d 'data=DATA ' http://exampleapi
$post['app_id'] = 'appid';
$post['sign_data'] = 'signdata';
$post['data'] = '<xml></xml>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
Answer the question
In order to leave comments, you need to log in
For curl, the XML field is plain text. What's the problem then?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question