Copy webpage, protected by session

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Copy webpage, protected by session

    Hi,

    I want to copy a page from the internet with fopen and fread. Now the
    problem is that you have to be logged in with a sessin to get to that
    page. Now I tried a couple of things. I tried to simulate the output of
    the login form in a link and open it with fopen and fread, to make the
    website see php as a logged in user, and then let the same script php
    copy the page I want. This did not work. Than I tried to open the page
    with netscape, logged in, and copy all the vars the website had stored
    in cookies and make a link out of that and use it in Internet Explorer
    to test if it would work. It didn't work. Turning of cookies in IE made
    it impossible to log in onto the website.
    Is there a way too make this website accept php as a logged in user? I'm
    getting out of ideas with my limited knowledge of php and sessions in
    general. Maybe I did something wrong in my previous tests.. but any
    thoughts?

    Thanks in advance, Maarten

    Maarten Guest

  2. Similar Questions and Discussions

    1. #16263 [Com]: session.start() create new empty session file and not resume existing session
      ID: 16263 Comment by: pat at burnttech dot com Reported By: kur at natur dot cuni dot cz Status: No Feedback...
    2. ibm flash copy, hp business copy
      dfreybur@yahoo.com (Doug Freyburger) wrote in message news:<7960d3ee.0406080727.42c9875a@posting.google.com>... but in either case, we still...
    3. Difference between "Protected WithEvents myClassName" And "Protected myClassName" ?
      Hello, what is the difference between a) Protected WithEvents myClassName b) Protected myClassName Thanks, Andreas
    4. cdrecord copy destroyed another windows copy !!!
      # cdrecord -msinfo dev=1,1,0 RAW/R16 0,221691 # cdrecord -msinfo dev=1,1,0 RAW/R16 44317,51858 what can be implied by those 2 messages ? How...
    5. cdrecord copy destroyed another windows NERO copy for re-writable media
      # cdrecord -msinfo dev=1,1,0 RAW/R16 0,221691 # cdrecord -msinfo dev=1,1,0 RAW/R16 44317,51858 what can be implied by those 2 messages ? How...
  3. #2

    Default Re: Copy webpage, protected by session

    Maarten Koster <cistron.nl> wrote in message news:<clkmvc$3gu$cistron.nl>... 

    1. http://in.php.net/curl
    2. http://curl.haxx.se/libcurl/php/examples/?ex=cookiejar.php
    3. http://curl.haxx.se/libcurl/php/examples/

    --
    | Just another PHP saint |
    Email: rrjanbiah-at-Y!com
    R. Guest

  4. #3

    Default Re: Copy webpage, protected by session

    "Maarten Koster" <cistron.nl> wrote in message
    news:clkmvc$3gu$cistron.nl... 

    Use stream_get_meta_data() to get the cookie from the HTTP response, then
    use stream_context_create() for adding the cookie into a HTTP request and
    for making a POST.


    Chung Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139