Search code examples
c#web-serviceshttpwebrequestsystem.net.httpwebrequest

How to create the HttpWebRequest https://xxx/1/Response?format=json&body={"operation":"list"}


How can I create the HttpWebrequest for this URL:

https://xxx/1/Response?format=json&body={"operation":"list"}? 

I am not able to create it as there is a string in the URL.


Solution

  • Replace all " with \"

    https://xxx/1/Response?format=json&body={\“operation\”:\“list\”}
    

    for more advanced help please show us your code that is not working