I'm doing a little testing for a friend who provided me a REST API description (and so it needs Assign some of the information in the given examples)
They have given me the place of location of the REST API address: and an example of a call on it: which then gives some information. They have also said that certain specific request headers need to be specified (for which I have replaced it with only one header = value example).
HttpWebRequest request = (HttpWebRequest) WebRequest.Create ("http://databaseinfo.com/getdata?somedata=5"); request. Method = "received"; Request.Headers.Add ("Header", "Value"); Var response = request GetResponse ();
When I run this code, getResponse () line throws a webexpress 404 not found I think this is because the end point does not exist, but only if I The code was doing some silly work, so wanted to check.
Any information would be greatly appreciated thanks.
Comments
Post a Comment