Closed evermanwa closed 7 years ago
My stream I am uploading is a kml file.
I do not know .NET so I was hoping someone else with experience would be able to assist you. Did you find a resolution @evermanwa ?
Hello wavded,
Sorry it took so long to reply, but yes I eventually tried a different tactic and this worked. Thanks!
Regards, William
using (WebClient client = new WebClient())
{
var prms = new System.Collections.Specialized.NameValueCollection();
prms.Add("json", json);
byte[] response = client.UploadValues("http://ogre.adc4gis.com/convertJson", "POST", prms);
return response;
}
I have been pulling my hair out for some time now trying to send over a .net connection. I using the following code below but it keeps coming back with a "bad request" error. I'm not sure what it's having an issue with. Is this an issue with my request format or the webserver?
Example: Stream responseStream = response.GetResponseStream();
Any insight or better way to do it would be much appreciated. Thanks!