Forum Moderators: open

Message Too Old, No Replies

Curl Xml Asp

I need to convert CURL command into XML

         

wsdw

6:29 am on Sep 16, 2005 (gmt 0)



I am stuck and I need some help solving this problem.

I have this code in CURL & PHP to login to secure page and collect XML data which works fine using PHP. Now I am migrating to ASP and I need to convert this code to XML. This code actually logs into secure page and collects data.

$ch = curl_init("https://partners.example.net/xml/ADSLChecker.php?PhoneNo=$phonenum");

curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERPWD, "USERNAME:PASSWORD" );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$data = curl_exec($ch);
curl_close($ch);

Here is the URL which suggest that it can be done using XML as far as I know.

But I am having problem sending the login details to the secure page. I am new to XML.

Thanks in advance for all your help. I appreciate it.

[edited by: jatar_k at 3:05 pm (utc) on Sep. 27, 2005]
[edit reason] no urls thanks [/edit]

choster

11:09 pm on Sep 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, wsdw. XML is a set of data formats, not a programming language-- you might be able to find help in the PHP or ASP forums. Then once you have your XML, you can return here and we can help transform it :).