curl-and-php
Re: upper directory level notation
Date: Sun, 07 Sep 2003 22:55:23 -0300
Daniel , Thanks for Your reply .
I've got that problem passed now ..
Instead of receiving the three frames i've got the post URL and was able to post
the url with curl but there is a new problem now.
First i do my authentication:
$ch = curl_init();
$ch1 = curl_init();
$fields = "txtUserId=userid&txtPassword=pass&txtTimeZone=25&txtNewPassword=&txtConfirmPassword=&txtDay=5&txtMonth=9&txtYear=2003&txtTime=21%3A16%3A37&txtCo_Clienttimezone=240&txtCommand=Problem&txtCo_ClientSTDtimezone=";
$fields1 = "strChangeId=222222";
curl_setopt($ch, CURLOPT_URL, "https://d02ntcl02/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,0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$fields);
$result = curl_exec($ch);
Then i request the url i need .
curl_setopt($ch2, CURLOPT_URL, "https://d02ntcl02/managenow/change/bin/files/wcls_ch_viewData.asp");
curl_setopt($ch1, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($ch1, CURLOPT_COOKIEFILE,'/srv/www/default/html/board/curltest/eduardor@managenow[1].txt');
curl_setopt($ch1, CURLOPT_COOKIEJAR,'/srv/www/default/html/board/curltest/eduardor@managenow[1].txt');
curl_setopt($ch1, CURLOPT_POST,0);
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch1, CURLOPT_POSTFIELDS,$fields1);
$result1 = curl_exec($ch1);
echo $result1;
curl_close($ch);
curl_close($ch1);
When i request the second URL it requests me to Relogin.
I think what the problem is , is that Different ASPSESSIONID are being used,
maybe something with the cookies.
Thanks once again
Eduardo Henrique Rocha
>From: Daniel StenbergMSN 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-08