D
D
DD-var2020-05-17 06:42:50
API
DD-var, 2020-05-17 06:42:50

How to submit the correct request?

string url = "api.openweathermap.org/data/2.5/weather?q=" + Cities + "&appid=" + api + "&lang=ru&units=metric";
            var oi = new HttpRequest();

            string op = oi.Post(url).ToString();
            var objects = JObject.Parse(op);


Yesterday this code worked, today it throws the error "xNet.HttpException: "Could not send request to HTTP server 'api.openweathermap.org'.""

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question