letrunghieu / wordpress-xmlrpc-client

A PHP XML-RPC client for Wordpress websites
MIT License
117 stars 43 forks source link

Add User-Agent header to XML-RPC requests #10

Closed WarrenMoore closed 10 years ago

WarrenMoore commented 10 years ago

As of last week, an undocumented change was made to WordPress.com blogs which prevented XML-RPC requests being accepted unless the User-Agent header was present (see discussion here).

The XML-RPC specification itself does state that the User-Agent header is required. This PR adds a meaningful User-Agent header to both cURL and file requests.