在ASP.NET中使用HttpWebRequest [英] Usign HttpWebRequest in ASP.NET
本文介绍了在ASP.NET中使用HttpWebRequest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,最近我被要求从我们的一个客户网站上的某处托管一些PHP API。我的意思是我需要向API发出POST请求,API将以XML的形式发回响应。
我已经尝试了所有我知道的但仍然没有得到任何回复。此外,如果我想使用trace.axd工具来查看响应消息,我将检查它的哪一部分。请指导我的任何示例
Hi guys, lately i was ask to call some PHP API hosted somewhere from one of our client website. I mean i need t make a POST request to the API and the API will send back a response in form of XML.
I have tried all that i know but still not getting any response. And Also if i want to use the trace.axd tool to view the response message, which section of it will i check. Please any example that will guide me is welcome
推荐答案
您可以使用 Chrome开发工具来检查Post响应。在chrome上检查< b>响应的网络部分。如果没有响应意味着您的post方法或托管服务有问题。请使用PHP API检查。
欲了解更多信息: Chrome DevTools
我希望这会对你有所帮助。
You can use Chrome dev Tools for inspect the Post response.On chrome check the 'Network' section for response.If no response means you have a problem with your post method or hosted service.Check that with the PHP API.
For more info : Chrome DevTools
I hope this will help to you.
没关系PHP / ASP,请参考下面的文章
http://technet.rapaport.com/info /prices/samplecode/Get_File_With_Post_Request_Using_WebClient.aspx [ ^ ]
http://stackoverflow.com/questions/4088625/net-simplest-way-to-send-post-with-data-and-read-response [ ^ ]
It doesn't matter PHP/ASP , Refer the below articles
http://technet.rapaport.com/info/prices/samplecode/Get_File_With_Post_Request_Using_WebClient.aspx[^]
http://stackoverflow.com/questions/4088625/net-simplest-way-to-send-post-with-data-and-read-response[^]
这篇关于在ASP.NET中使用HttpWebRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文