Solved

Curl cookies date

Posted on 2008-10-23
3
425 Views
Last Modified: 2012-05-05
Hi experts,
i use this:
      $LOGINURL = "https://www.o2online.ie/amserver/UI/Login";
      $POSTFIELDS = 'IDToken1=username&IDToken2=pass&Go=Go&org=o2ext&gx_charset=UTF-8';
    $reffer = "https://www.o2online.ie/amserver/UI/Login";
    $cookie_file_path='cookie.txt';

      $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$LOGINURL);
      curl_setopt($ch, CURLOPT_USERAGENT, $agent);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS,$POSTFIELDS);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
      curl_setopt($ch, CURLOPT_REFERER, $reffer);
      curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
      curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
  curl_exec ($ch);
  curl_close ($ch);

is possible get cookie expiration date from cookie.txt...
Thanks..

0
Comment
Question by:popolusiak
  • 2
3 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 22804171
Please run the script and then print out cookie.txt and post the contents here.  We may be able to help you decode it. ~Ray
0
 

Author Comment

by:popolusiak
ID: 22808448
Thanks for answer.
The contents of cookie.txt:

.o2online.ie      TRUE      /      FALSE      0      o2onlinewebserver      blaecrmiwsp02-bUhHdAqJwBUAACG75xgAAAGi
.o2online.ie      TRUE      /      FALSE      0      LtpaToken      rRhohlliyTPetYuPT9Zpj7CQMOHc5EcLu3+Dm711M97NFDpLe8GndbOFxMhq2Pu0DYUamBjZzKgS2tw0vFn748G13RUVWroc+3KXKILybr8oZynvUxPYnGgMaqMLIN4BeZKS0Xbg+sHwVR8cW8HYEe7QKYrJ7RJW7ET+rhZM8j1OGKz6FpRROhb5eSr3uf935ANc6qnGz8lUBp5BFnwwioO7hIP1bTrNXmoEZh8LmriSG3KAaZ6oKViwK4f/Z5EjX2L1Sb86DgiHyTBEqiFQUJ6iLC29Ml3sNyVb1UNmDaLUAomT5wFWQoEjbk6P838Q5miGT4gu5PNb+kerXXaQ2DhZYuAtlE18p92Fg9utticYNWMnD9whxg==
.o2online.ie      TRUE      /      FALSE      0      IMDataGivenName      0864003186
.o2online.ie      TRUE      /      FALSE      0      IMDataCtn      0864003186
.o2online.ie      TRUE      /      FALSE      0      IMDataEmailAddress      
.o2online.ie      TRUE      /      FALSE      0      iPlanetDirectoryPro      AQIC5wM2LY4SfczjRqg93uQETIIAiMy35jxxXdpWl0z5buQ%3D%40AAJTSwAKLTUyODI3OTE0MQACU0kAAjAzAAJTMQACMDE%3D%23
.o2online.ie      TRUE      /      FALSE      10      AMAuthCookie      LOGOUT
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 22811984
Hi.  It does not appear to be present in cookie.txt.  I have looked at the cookies via Firefox prior to login and they appear to expire at the end of the browser session.  Sorry I could not help more. ~Ray
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scandir() not reads all files 4 25
how to resize preview image 4 29
php image upload 3 25
php variable basic question 12 27
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now