PHP send a REST message within body and not as multipart -
we have issue php client sending rest / post message. receive message payload attachment, while expect in message content itself.
<http:accept>*/*</http:accept> <http:connection>close</http:connection> <http:content-length>385</http:content-length> <http:content-type>multipart/form-data; boundary=----------------------------41eae3cb899c</http:content-type> <http:host>jit</http:host> </tran:headers>
while if send request using curl like
curl -h "username:xxx" -x post -d '<message />' http://myurl.com
it works properly, should ask check?
issue content wrong content type, it'd application / xml
Comments
Post a Comment