Hi all, i have a url where it will give xml result lets say www.xyz.com/abc/def/?p1=v1&p2=v2 what i want to know is , when i query with file_get_contents it is giving me HTTP1.1 Bad Request , $url="http://www.xyz.com/abc/def/?p1=v1&p2=v2"; $xml=file_get_contents($url); even i tried with curl .. that is also happening same ... what is wrong with my code or is there any other way to get the contents of xml ...
seems your server needs to be configured with php_mod rewrite , tell your server about this problem. they surely might have some solution . Newcity,