View Single Post

 
Old 03-30-2008, 11:02 PM
reinaldo83 <b>Offline</b>
Junior Member
 
Join Date: Mar 2008
Posts: 2
Quote:
Originally Posted by Chad View Post
well, if there is a session value that is changing and its a post field on the page what you will want to do is use, preg_match to grab the values on the page then add them to your post string. Hope this helps.
I'm not sure if i am understanding you. Well, you're right, i can use preg_match to grab the POST fields data, i don't know how to do that but that's not the problem.

The postfileds data i have to send in cj.com changes, but that's ok no problem and even the postfield data that i have to send to https://members.cj.com/member/login (that is basically the same login page) don't changes, this is better than the first one.

The problem is another one, i think it is about COOKIES. When i try your code and all the codes i've been testing i can see the following line in the cookie file grabbed by COOKIEJAR function:

members.cj.com FALSE / FALSE 0 JSESSIONID xxxxxxxxxxx

I think this line means that CURL is logging in satisfactorily because the this cookie shows me a JSESSIONID value. When the code fails a FALSE value is shown instead the JSESSIONID value.

Well, even showing the JSESSIONID value, CURL can't show me the page that i'm looking for inside the login form.

I think this problem is for COOKIE values, when i intercept the data, i can see my browser is sending to CJ server utma, utmc, utmz, utmb values and even sometimes the JSESSIONID as a cookie value.

Intercepting the data a lot of times, i can see this utmX values appear ramdomly. I mean, sometimes appears the utmb cookie and some other times not and it is the same for utmc, JSESSIONID and a cookie named cjuMember.

This values appears ramdomly even in the same session. I'm trying to pass this __utmX values by using the CURLOPT_COOKIE function but it still not working.

Do you know about the utmX cookie values and how can i pass this data to the session created by CURL???

Thank you in advance.

Reinaldo.
Reply With Quote