Grab page needs session

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Grab page needs session

    How to grab page needs session plz some1 tell me the code

    #2
    use Curl

    Comment


      #3
      I know i must use curl but how to set the session?
      Please tell me whats worng at that code
      PHP Code:
      <?
      $ch = curl_init('http://mig33.com/sites/index.php?c=chatroom&v=midlet&a=setup_moderators&roomName='.$room); 
      curl_setopt($ch, CURLOPT_HEADER, 0); 
      curl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot2.html)');
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
      $text = curl_exec($ch); 
      curl_close($ch); 
      curl_setopt($ch, CURLOPT_HEADER, 0); 
      curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile"); 
      curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile"); 
      curl_setopt($ch, CURLOPT_COOKIE, session_name() . '=' . session_id()); 
      echo $text; 
      ?>

      Comment


        #4
        oh flooding tools for mig33 ..........

        Sorry but your going to have to figure this out on your own as im not contributing to such script

        Comment


          #5
          its not flooding tool,
          it showing room moderators for easy report

          Comment


            #6
            Set all the options before you call exec()

            Otherwise, the cookie settings won't be set.

            Move $text = curl_exec
            ($ch); to the the bottom just before echo.

            Already told you I could do this script easy.Well, goodluck!
            Perfection comes at a cost



            I accept liberty!

            Comment


              #7
              that code not working too
              PHP Code:
              <?
              $ch = curl_init('http://mig33.com/sites/index.php?c=chatroom&v=midlet&a=setup_moderators&roomName=egypt-kisses'); 
              curl_setopt($ch, CURLOPT_HEADER, 0); 
              curl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot2.html)');
              curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile"); 
              curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile"); 
              curl_setopt($ch, CURLOPT_COOKIE, session_name() . '=' . session_id()); 
              curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
              $text = curl_exec($ch); 
              curl_close($ch); 
              echo $text; 
              ?>
              please give me the right code
              its not flood tool or ileagl script...

              Comment


                #8
                please some1 help there

                Comment


                  #9
                  Code:
                  <?php 
                  $strCookie = 'PHPSESSID=' . $_COOKIE['PHPSESSID'] . '; path=/';
                  session_write_close();
                  $ch = curl_init('http://mig33.com/sites/index.php?c=chatroom&v=midlet&a=setup_moderators&roomName=egypt-kisses');  
                  curl_setopt($ch, CURLOPT_HEADER, 0);  
                  curl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot2.html)'); 
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                  curl_setopt( $ch, CURLOPT_COOKIE, $strCookie );
                  $text = curl_exec($ch);  
                  curl_close($ch);  
                  echo $text; 
                  ?>
                  try this..

                  Comment


                    #10
                    not working bro, it giving error
                    Moved Permanently
                    The document has moved here

                    Comment


                      #11
                      i also need this plz help us.....

                      and can any one share that code which is using for disable a grabber after using it grabber shows Document has moved here

                      sorry bad english...

                      Comment


                        #12
                        lmao, they will neva learn us

                        Comment

                        Working...
                        X