I have the below code:
it returns internal server error,
but whenever I post "http://uk-postcodes.com/postcode/nearest?postcode=SE146NS&miles=1&format=json" directly to the browser
before running the code it runs fine.
If I run the code without posting directly to browser it returns internal server error.
Please is there anything I'm doing wrong
I have the below code: it returns internal server error, but whenever I post "http://uk-postcodes.com/postcode/nearest?postcode=SE146NS&miles=1&format=json" directly to the browser before running the code it runs fine. If I run the code without posting directly to browser it returns internal server error. Please is there anything I'm doing wrong
Code: string baseUrl = "http://uk-postcodes.com/postcode/nearest"; string restUrl = string.Format("{0}?postcode={1}&miles={2}&format=json", baseUrl, postcode, miles);