Search found 4 matches

by nickzer
Sun May 18, 2008 2:13 pm
Forum: PHP - Code
Topic: cURL and http identification
Replies: 8
Views: 525

Re: cURL and http identification

I'm talking out my butt today, sorry try this:   $u = "test"; $p = "test";             curl_setopt($hCURL, CURLOPT_URL, "somehost.com/whatever.php");       curl_setopt($hCURL, CURLOPT_RETURNTRANSFER,1); curl_setopt($hCURL, CURLOPT_TIMEOUT, 6); curl_setopt($hCURL, CURLO...
by nickzer
Sun May 18, 2008 11:41 am
Forum: PHP - Code
Topic: cURL and http identification
Replies: 8
Views: 525

Re: cURL and http identification

All Curl does is mimic a web browser. The way your script works should be exactly the same as if the user was using Firefox or Internet Exploer ... If the login details are sent in the URL you'd access them in the script using $_GET, if they're sent as part of the POST variables you'd access them w...
by nickzer
Sun May 18, 2008 10:41 am
Forum: PHP - Code
Topic: cURL and http identification
Replies: 8
Views: 525

Re: cURL and http identification

ha, my third post here and they're both on the same place... its simple really to post using cURL, see code below...     $ch = curl_init();  //This here just starts the cURL, kinda like session_start();   // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "$URL"); //Se...
by nickzer
Sat May 17, 2008 7:33 pm
Forum: PHP - Code
Topic: cURL and http identification
Replies: 8
Views: 525

cURL and http identification

Hi guys, I never did this, so I don't know where I should start. I'm doing an API for a PHP application, that needs user and password identification. I see in other APIs that, using cURL, are able to "post" user credentials... but I'm unable to get that. How can I do it? Thank you in advan...