使用c#应用程序中的Process.Start方法将JSON发送到Web服务 [英] Send JSON to web service with Process.Start method in c# application
问题描述
我在c#应用程序中使用以下方法向Web服务提交JSON
I submit a JSON to a web service with the following method in my c# application
我找到了该URL超过IE中的最大URL长度,因为照片的数据长度太长
I found that URL exceed the maximum URL length in IE because the data length of photo is too long
我可以将JSON发送到Web服务,如HTTP请求的POST方法吗?
Can I send the JSON to the web service like POST method of HTTP request?
谢谢,
Tony
Thanks,
Tony
string myJson = "{"Status":"0","Photo","xxxxxxxxxxxx"}";
Process.Start(" IEXPLORE.EXE"," http://mywebservice.com?" + myJson);
Process.Start("IEXPLORE.EXE", "http://mywebservice.com?" + myJson);
推荐答案
嗨Tony,
欢迎来到MSDN论坛。
Welcome to the MSDN forum.
请参阅您的描述,您的问题更多地与ASP.NET开发有关。由于我们的论坛是讨论VS IDE,请重定向到这个适当的论坛:
https://forums.asp.net/并开始一个新的主题以寻求更专业的支持,感谢您的理解。
Refer to your description, your issue is more relates to the ASP.NET development. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://forums.asp.net/ and start a new thread to seek for a more professional support, thank you for your understanding.
致以最诚挚的问候,
Sara
这篇关于使用c#应用程序中的Process.Start方法将JSON发送到Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!