Open
Description
Flickr just announced they will be requiring a User-Agent in the header of all API calls.
A partial quote:
We will begin to require a user agent header on all API calls. Specifically, your calls will need to provide a “User-Agent” header, and the header needs to have a value that roughly describes your client. A good header for a client might look like “User-Agent: MySetManager/2.3” or “User-Agent: PHP_Flickr/1.0”. We believe this change will help us better manage traffic and improve our overall API availability.
More info here.
As far as curl is concerned, it should be as simple as adding something like this to the post()
method:
curl_setopt($curl, CURLOPT_USERAGENT, 'User-Agent: PHP_Flickr/3.1');
Obviously, you may want to make it dynamic etc, but that's the idea.
Metadata
Assignees
Labels
No labels
Activity