Error 301 with HTTP()
#1

Hello, I've got a problem with the function HTTP. I'm trying to get some information to a website with SSL.
Website: https://samples.openweathermap.org/data/2.5/weather

When I paste this URL into my browser, it work perfectly. But for the script, it return me an error:

Code:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>openresty/1.9.7.1</center>
</body>
</html>
PHP Code:
    format(stringsizeof(string), "%s?id=%d&appid=%s"API_URLCITY_CODEAPI_KEY);
    
printf("string: %s"string);
    
HTTP(-1HTTP_GETstring"""weather_response"); 
Thank's you
Reply


Messages In This Thread
Error 301 with HTTP() - by djoudjou - 21.01.2019, 15:52
Re: Error 301 with HTTP() - by Kaliber - 21.01.2019, 16:07
Re: Error 301 with HTTP() - by RoboN1X - 21.01.2019, 16:14
Re: Error 301 with HTTP() - by djoudjou - 21.01.2019, 16:26
Re: Error 301 with HTTP() - by RoboN1X - 21.01.2019, 16:54

Forum Jump:


Users browsing this thread: 2 Guest(s)