cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

upper directory level notation

From: Eduardo Henrique Rocha <duzao_blues_at_hotmail.com>
Date: Sun, 07 Sep 2003 11:18:17 -0300

Hello folks ,

I'm trying to get curl to capture the results of a ssl page for me .

When the url moves from the authentication url to the next one

i have two problems:

1) The second uses frames.

2) The url for the frames are not completelly filled it's something like

..\..\common\something.asp and this is causing Curl to look for the page

in my local server instead of www.url.com\common\something

does anyone have any toughts about it ?

Here goes the code:

$fields = "txtUserId=user&txtPassword=pass&txtTimeZone=25&txtNewPassword=&txtConfirmPassword=&txtDay=5&txtMonth=9&txtYear=2003&txtTime=21%3A16%3A37&txtCo_Clienttimezone=240&txtCommand=Problem&txtCo_ClientSTDtimezone=";
curl_setopt($ch, CURLOPT_URL, "https://www.url.com/managenow/common/bin/files/wcls_co_loginverify.asp");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');  
curl_setopt($ch, CURLOPT_COOKIEFILE,'/srv/www/default/html/board/curltest/eduardor@managenow[1].txt');
curl_setopt($ch, CURLOPT_COOKIEJAR,'/srv/www/default/html/board/curltest/eduardor@managenow[1].txt');
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
//curl_setopt($ch, CURLOPT_HEADER,1);
curl_setopt($ch, CURLOPT_POSTFI! ELDS,$fields);
 
$result = curl_exec($ch);

if (!$result)
{
die(sprintf('Error [%d]: %s',curl_errno($ch),curl_error($ch)));
}
 
curl_close($ch); 
echo $result."<br>";


Eduardo Henrique Rocha
Mail & Messenger :
duzao_blues@hotmail.com
Tel : 19-3233-7378
CeL : 19-9138-8939



MSN Messenger: converse com os seus amigos online. Instale grátis. Clique aqui. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf Received on 2003-09-07