Re: Any ideas how to read a url that's changed by the server?



On Mon, 20 Aug 2007 22:57:01 +0200, TechieGrl <cschaller@xxxxxxxxx> wrote:


You should then be able to extract the session ID from that using your choice
of text matching function.



Now that I've extracted the unique key from the url, I'm finding that
I'm having problems opening up the actual pages. This unique key
appears to be their session variable and so now their server views the
first hit to the server as sesson 1 and assigns it an id. Then when I
send in a new url with the session id, it views it as being a new
session and so that unique session id is no longer valid.

Any thoughts?

Probably you need to use cookies.

<http://nl3.php.net/manual/en/function.curl-setopt.php>

//create sort of 'anonymous' cookiefile in temporary directory
$cookiefile = tempnam();

//initiliaze curl
$c = curl_init();

//follow redirects
curl_setopt($c,CURLOPT_FOLLOWLOCATION,true);

//store & retrieve cookies
curl_setopt($c,CURLOPT_COOKIEFILE,$cookiefile);
curl_setopt($c,CURLOPT_COOKIEJAR,$cookiefile);

//some people still think referrer should be checked, hidious:
curl_setopt($c,CURLOPT_AUTOREFERER,true);

//set the url
curl_setopt($c, CURLOPT_URL, "http://www.example.com/";);

//and go:
curl_exec($c);

//and close
curl_close($c);

//and delete cookiefile
unlink($cookiefile);

--
Rik Wasmus
.



Relevant Pages

  • Re: ScaleOut StateServer
    ... if you only have one server), ... It supports in memory session access from within or ... outside the individual session. ... It basically gives you way to create a unique key and reference ...
    (microsoft.public.dotnet.framework.aspnet)
  • ScaleOut StateServer
    ... If you use this product to manage session (the license may be free ... if you only have one server), ... It supports in memory session access from within or ... It basically gives you way to create a unique key and reference ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Any ideas how to read a url thats changed by the server?
    ... I'm having problems opening up the actual pages. ... This unique key ... appears to be their session variable and so now their server views the ... first hit to the server as sesson 1 and assigns it an id. ...
    (comp.lang.php)
  • Re: PHP & MySQ + unique keys
    ... :>> I'm trying to write a system thats used for about 50 clients that uses ... The problem is that when a client ... :>> when you refresh the page that the unique key is incremented as you ... session is using. ...
    (comp.lang.php)
  • Re: Navigate in popup window
    ... I use a unique key name to identify the item in the system cache, ... However, if the data is unique to each client accessing your application, ... I still use caching instead of session state due ...
    (microsoft.public.dotnet.languages.vb)