Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

api giving 401 from wget/curl, but working fine from Chrome/Firefox browsers

Dale Jenkins Nov 11, 2017 12:18AM UTC

Making following call to API:

Using wget I receive a 401 Auth Failed message. From Chrome/Firefox the expeceted data is returned.

Is there a UserAgent string that needs to be set, or are there other factors that could be impacting on this?

Up 0 rated Down
Maxim Gushcho Nov 13, 2017 11:12AM UTC OpenWeatherMap Agent


Since the syntax is correct ans it works in the browser, please check the settings that is used for making a request.

The request method should be “GET”.


Up 0 rated Down
Roman Nov 19, 2017 10:39AM UTC
Good day,

I am having same problem.
The request method used is "NODE-FETCH"

Can it be a problem?

Br, Roman.
Up 0 rated Down
Maxim Gushcho Nov 20, 2017 04:54PM UTC OpenWeatherMap Agent


The request Method should be “GET”.


Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found