21.01.2019, 16:54
Quote:
I think you have reason. Did you know a plugin to perform this ?
|
https://sampforum.blast.hk/showthread.php?tid=653362
Quote:
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. |
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