Writing A Twitter Client Using PHP (3):How to make Twitter’s response in English through curl?(C)

Last blog: hWriting A Twitter Client Using PHP (2): Service Provider Grants Request Token

Here use the oauth_token to get the authorization webpage from Twitter.com. The code is quite simple as below:

$url2 = “http://api.twitter.com/oauth/authorize?oauth_token=” . $oauth_token;
$rep = http($url2);
echo $rep;

Just I have a problem here. The webpage I get is in French. If I put the url in the address space, it will response a webpage in English. I think that the Twitter server must check the language that the Browser uses, but with curl, I need to send the information about language to the Twitter server, but I don’t know how to do it.

I’m trying to figure it out now.

Added on Mar. 8, 2011

When I post those files on the host server, the webpage turns to be in English. Just on my own computer, use “localhost”, it is in French. So, just put this issue aside and move on.

Leave a Reply

Your email address will not be published. Required fields are marked *