Jump to content

PHP GET Request and responce...please help!!


olud

Recommended Posts

I am using the code below to query a url. It should return the response in xml bu all i get is a string back.

 

$url = 'https://services.example.org/webservices/xget.php?ProductIDValue='.$_GET['pid'].'&ProductIDType=01&ONIXRecordFormat=03&ClientID='.$GLOBALS['user'].'&ClientPassword='.$GLOBALS['pass'];

 

$r= new HttpRequest($url, HttpRequest::METH_GET);

$r->send () ;

echo $r->getResponseBody() ;

 

1. How can i get the response as xml

2. How can i display the response on my web page

 

Thanks a lot for your help

Link to comment
https://forums.phpfreaks.com/topic/235194-php-get-request-and-responceplease-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.