Error 301 with HTTP()
#5

Quote:
Originally Posted by djoudjou
View Post
I think you have reason. Did you know a plugin to perform this ?
There are some, I have never tried but i think when you want to do with API this can help:
https://sampforum.blast.hk/showthread.php?tid=653362

Quote:
Originally Posted by Y_Less
View Post
Did any of you bother to look up what 301 means? Or even just read the error given in the response in the first post.

301 is "Mover Permanently". That means the data is somewhere else. It works in your browser because the browser sees 301 and goes to the new location. It doesn't work in your code because you don't.
I did, in the past i was trying to achieve similarly what the thread starter did (just different site)
It just that i am not sure wether the response was actually a "301" http code (he didnt mention it) or it can be a success http code with response body "moved permanently" (as he posted the html docs code) where some common webserver response to redirect a browser from http to https (if im not wrong)
It is just that i have no idea what the openweathermap site provides with its API (confirm it with the official guide) nor what openresty web server does.. Somewhat i'd expected a new address for redirect in the response, but i didnt really think/hope much as it wasnt 303.

Nevertheless, if it has something to do with API i dont think it was enough to perform without some include/plugin libraries
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: 3 Guest(s)