Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

fetch page after login succesfuly

Help
2007-05-02
2013-05-30
  • issamovskii
    issamovskii
    2007-05-02

    I try to get the content page after login in to a site.the login was successfuly I can print the response, but when I'm trying to fetch another page I get a page that tell me your session has expired and not the page I want to fetch. I think it's a problem of cookie.
    I get this header after login.
    Headers:
    Array
    (
        [0] => HTTP/1.1 200 OK

        [1] => Server: Microsoft-IIS/5.0

        [2] => Date: Wed, 02 May 2007 15:31:15 GMT

        [3] => Connection: Keep-Alive

        [4] => Content-Length: 7619

        [5] => Content-Type: text/html

        [6] => Expires: Wed, 02 May 2007 15:31:16 GMT

        [7] => Set-Cookie: ASPSESSIONIDCQQQDAQQ=JMJHOFEAKPCPIIHEMIBCMGKE; path=/

        [8] => Cache-control: private

    )

    any suggestion.
    thanks.

     
    • issamovskii
      issamovskii
      2007-05-03

      problem solved
      before fetching second page
      I do
      $snoopy->setcookies();

       
      • P!@y3r
        P!@y3r
        2007-05-05

        can you give the coding of the second page?

         

  • Anonymous
    2011-05-30

    Can you send me the coding of both scripts?

    I jsut made my first snoopy script (first sql as well) and I just realized I'm half way to the final script!!
    I'd hate having to re-code the whole thing in JavaScript to use my browser's session :(

    Thanks.