Hi, I could help. I have exactly the same problem. That I have to make changes or add the User-Agent?
Thank you very much On 28 jun, 23:48, jey jey <[email protected]> wrote: > Hi > > Thanks Matt, > > Its working, Thanks again for your cool help and your time > > regards > j0banhttp://phpqa.blogspot.com > > On Jun 25, 7:31 pm, Matt Sanford <[email protected]> wrote: > > > Hi there, > > > If you're accessing search.twitter.com from AWS please set the > > User-Agent header to something meaningful, like the name of your > > website or service. Without a User-Agent you will see 400s when > > accessing from AWS. > > > Thanks; > > – Matt Sanford / @mzsanford > > Twitter Dev > > > On Jun 24, 2009, at 11:42 PM, jey jey wrote: > > > > Hello > > > > I am tring to do a Api call using simple xml and twitter search API. > > > Whwn I am trying to do so i am gettng the following errors > > > > Message: simplexml_load_file(http://search.twitter.com/search.atom?q= > > > %40southwestair) [function.simplexml-load-file]: failed to open > > > stream: HTTP request failed! HTTP/1.1 400 Bad Request > > > > Message: simplexml_load_file() [function.simplexml-load-file]: I/O > > > warning : failed to load external entity "http://search.twitter.com/ > > > search.atom?q=%40southwestair" > > > > here is the code that I am using for > > > > $brand = "southwestair"; > > > $searchUrl = > > > "http://search.twitter.com/search.atom?q=%40".$brand; > > > $results = simplexml_load_file($searchUrl); > > > $entry = $results->entry; > > > //$result = $this->twitter->search($brand); > > > $count = 0; > > > print_r($entry); > > > > I am using Amazone aws server, PHP 5.2 version, in my server, > > > allow_url_fopen is ON > > > > But its working in my local machine giving the results. > > > > Could please look in to this issu, let me know whats wrong with me > > > > thanks > > > > j0ban > > >http://phpqa.blogspot.com
