I need to send a http request without encoding (I have to consume a stupid supplier API that breaks if you encode your urls)
so currently I have
string address = "https://www.eco-bb.bt.com/bbxml33/batchstatus.asp?b_customerId=[O/M12346800]&batchid=[" + batchID + "]";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(address);
Which produces
POST
https://www.eco-bb.bt.com/bbxml33/Upload.asp?b_customerId=%5BO/M12346800%5D
And I want it to produce
POST
https://www.eco-bb.bt.com/bbxml33/Upload.asp?b_customerId=%5BO/M12346800%5D
I’m a little stumped. Any suggestions on how to proceed?
If you’re running .NET 4 or later you can add the following config