Hello everyone..
I'm trying to use opensubtitles API on my newly Flutter project, but I constantly get a 403 as a response.
Sometimes it works, but rarely.
Request call
GET /api/v1/features?query=Jurassic HTTP/1.1
user-agent: MyAppName v1
accept: application/json
accept-encoding: gzip
host: api.opensubtitles.com:443
content-type: application/json
api-key: S**************4
Response body
<!DOCTYPE html>
<html>
<head>
<title>403 User-Agent header is wrong; set it to YOUR App name with version eg: MyApp v1.2.3</title>
</head>
<body>
<h1>Error 403 User-Agent header is wrong; set it to YOUR App name with version eg: MyApp v1.2.3</h1>
<p>User-Agent header is wrong; set it to YOUR App name with version eg: MyApp v1.2.3</p>
<h3>Guru Meditation:</h3>
<p>XID: 60952364</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
I don't have any problems from Postman or CURL, on the same machine.
Any guess?