Did you try pasting the URL generated by PHP in the address bar of your browser to see what happens? I tried http://api.eventful.com/rest/events/search?keywords=title:king&app_key=myappkey and it worked just fine.
Generally when debugging PHP, I make liberal use of the line: echo <something>; die(); ...to see what's going on internally. -Alex On Sun, Dec 5, 2010 at 12:43, Abhishek Jain <[email protected]> wrote: > Hi, I am new to Eventful and trying to write a simple PHP program to extract > relevant event as below > > > > $eventfulUrl='http://api.eventful.com/rest/events/search?keywords=title:'.$authorname.'&app_key=myappkey'; > echo $eventfulUrl; > $ch_event = curl_init($eventfulUrl); > curl_setopt( $ch_event, CURLOPT_USERAGENT,$user_id ); > $response=curl_exec($ch_event); > > However, I am getting "400-Bad Request". would really appreciate any help > > Cheers, > Abhi >
