The remote server returned an error: (404) Not Found

HI Guys, I am trying to use your API but I am getting a error: “The remote server returned an error: (404) Not Found.”. I’ve tried many different things and I my stock. Need your help.

NetworkCredential myNC = new NetworkCredential(“myuser”, “mypassword”);

        using (WebClient routeXLAPI = new WebClient())
            NameValueCollection myNVC = new NameValueCollection();
            myNVC.Add("locations", json);

            routeXLAPI.Credentials = myNC;
            routeXLAPI.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

            //************* WORKS *******************
            // -- < p > Welcome to the RouteXL API.</ p >

            // -- < p > Read the < a href = "" > API documentation </ a </ p >
            //*** this code below Get a error: The remote server returned an error: (404) Not Found.
            routeArray = routeXLAPI.UploadValues("", "POST", myNVC);                

If you need any further information please let me know.

Thank you

Not sure what language this is, but it seems at least the endpoints are missing in your code. To get the status there should be a GET /status and for a route it should be POST /tour. Could you check on that?

the language is C# and I am trying a POST tour to receive back an optimized tour. thanks

There is no /tour endpoint in the code you’ve shared. You could try to add the endpoint to the URL:

routeArray = routeXLAPI.UploadValues("", "POST", myNVC);