Страница 1 из 1
w5100
Добавлено: 15 дек 2018, 16:59
com
Нужен блок WEB клиент для работы с w5100, в стандартном блоке подключение к серверу по IP адресу, а нужно по URL, для парсинга погоды на сайте api.openweathermap.org
w5100
Добавлено: 15 дек 2018, 18:25
Sancho
[ref]com[/ref],
Так проходит? Сам не пробовал.
api.openweathermap.org has address 178.62.207.82
api.openweathermap.org has address 146.185.181.89
api.openweathermap.org has address 95.85.63.65
w5100
Добавлено: 15 дек 2018, 20:21
com
Sancho писал(а): 15 дек 2018, 18:25api.openweathermap.org has address 95.85.63.65
По этому адресу не работает.
А вот по первым двум адресам начал получать хотя бы ответ:
HTTP/1.1 400 Bad Request
Server: openresty
Date: Sat, 15 Dec 2018 17:19:40 GMT
Content-Type: text/html
Content-Length: 166
Connection: close
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
Запрос в теле страницы такой:
GET /data/2.5/weather?id=1488754&appid=ffea76ba1b4d48e8fa9f7e43d92b2941 HTTP/1.1
Что делаю не так?