drtzb06222 2013-09-03 15:33
浏览 75
已采纳

PHP在body中发送REST消息而不是multipart

we have an issue with a PHP client sending a REST / POST message. We receive the message payload as an attachment, while we would expect it in the 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 I send the request using curl like

  curl -H "username:XXX"  -X POST -d '<message />' http://myurl.com

it works properly, what should I ask to check?

  • 写回答

1条回答 默认 最新

  • dtnmuyoiw680512744 2013-09-06 07:55
    关注

    Issue was the content wrong content type, it'd be application / xml

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动