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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -