Sorry, i'm not that of a hero with API's e.d. I couldn't really find it at the F.A.Q., if you search for source i can't find a matching answer.
But, i tried chaning this: curl_setopt($curl_handle, CURLOPT_USERAGENT, '*Flog (http://www. 17031986.nl)'); To: curl_setopt($curl_handle, CURLOPT_SOURCE, '*Flog (http://www. 17031986.nl)'); To bad, cause that didn't work.... Does anyone of you guys have a more advanced answer? Thanks! On 9 feb, 16:54, Matt Sanford <[email protected]> wrote: > Hello, > > The "from web" is called a source in Twitter developer jargon. > Check out the FAQ athttp://apiwiki.twitter.com/FAQfor information on > getting your own. > > Thanks; > — Matt Sanford > > On Feb 9, 2009, at 01:04 AM, R.Sebastian wrote: > > > > > I'm trying to fix a custom User Agent for a long time, using the API > > in PHP and Curl. > > > This is my script: > > > <? > > $curl_handle = curl_init(); > > curl_setopt($curl_handle, CURLOPT_URL, "$url"); > > curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); > > curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); > > curl_setopt($curl_handle, CURLOPT_POST, 1); > > curl_setopt($curl_handle, CURLOPT_USERAGENT, ' *Flog (http://www. > > 17031986.nl)'); > > curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message"); > > curl_setopt($curl_handle, CURLOPT_USERPWD, > > "$username:$password"); > > $buffer = curl_exec($curl_handle); > > curl_close($curl_handle); > > } > > > ?> > > > I want to add the custom user agent, but if i post a message (which > > works), Twitter says the user agent is "via web" instead of my custom > > agent. Does anyone knows the answer? Thanks!
