如何发送HTTP PUT请求中的Flex [英] How to send PUT HTTP Request in Flex
问题描述
我要发送HTTP PUT请求上一个网址,通过使用API来更新XML中的内容。
I want to send HTTP PUT Request on one URL to update that content of XML via using API.
网址是这样的: https://domainname.com/someurls/id.xml
我要更新的内容。
不过,当我送这个PUT请求,我已经看到,在Flex 4中的网络监视器,它将会作为本网站的POST请求,而我设置方法放到的HTTPService变量。
But When I am sending this PUT request, I have seen that in Network Monitor of Flex 4, Its going as the POST request on this web, while I am setting method as PUT in HTTPService variable.
所以,我收到错误。 那么,有没有办法送在网络上PUT请求? 要么 有没有什么特殊的头设置PUT方法? 我曾尝试方法的标题,但它不工作......
So I am getting error. So is there any way to send the PUT request on the web ? Or Is there any special header to set PUT method ? I have tried method header but its not working....
请帮我.....
推荐答案
我发现发送PUT和DELETE服务与HTTPSerivce在柔性解决方案。
I have found the solution to send the put and delete service with HTTPSerivce in flex.
您只需要发送一个更多头的服务方法POST。
You just have to send one more header with the service method POST.
您必须在POST方法发送数据,并附加一个多接头连接器X-HTTP-方法,替代和值作为PUT或DELETE。
You have to send data in the POST method and attach one more header X-HTTP-Method-Override and the value as the PUT or DELETE.
您服务将被发送的PUT或DELETE。
Your service will be send as PUT or DELETE.
感谢......
这篇关于如何发送HTTP PUT请求中的Flex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!