Thread:Project:Support desk/Accessing the API from the server./reply (5)

Hi, I am trying right now to get the xml by PHP script but I get the User-Agent error, how should I set the user-agent in my URL? http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Something&rvprop=content Please provide an example :(