Getting 404 error calling Status

Getting 404 error calling Status

Postby mskoglund » Sun Aug 06, 2017 5:03 am

Using C# and .NET I am getting a 404 return code from the "status" interface using the following code:

Code: Select all
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://json.schedulesdirect.org/20141201/status");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
httpWebRequest.UserAgent = SDData.userAgent;
httpWebRequest.Headers.Add("token", SDData.token.token);

var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();


I have successfully called "token" and I think I have added the value to the Header.

I am experienced in .NET but this is my first time calling a JSON interface.

Any help would be appreciated, thanks.
Mark Skoglund
mskoglund
 
Posts: 2
Joined: Sat Aug 05, 2017 11:16 am

Return to Developer

Who is online

Users browsing this forum: No registered users and 1 guest

cron