PHP:curl

Discussion in 'PHP' started by born2hack, Oct 14, 2008.

  1. #1
    I recentely started working with curl and am trying to make a script which logs into rapidshare and retrieves your rapidshare premium accounts expiration date,points etc. Any suggestions how to do it?
     
    born2hack, Oct 14, 2008 IP
  2. FredL

    FredL Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    php.net/manual/en/function.curl-setopt.php - check comments there.

    
    // params when logging to rapidshare, eg. username and password fields and values.
    $data = array('param' => 'value');
    //.....
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    //.....
    
    curl_setopt($ch, CURLOPT_URL, 'rapidshare.com?.....');
    $result = curl_exec($ch);
    
    // if you want to retrieve any infromation,
    // you need to parse $result string which contains web HTML code.
    
    PHP:
     
    FredL, Oct 16, 2008 IP
  3. born2hack

    born2hack Banned

    Messages:
    294
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for the help, i will give a try.
     
    born2hack, Oct 16, 2008 IP
  4. born2hack

    born2hack Banned

    Messages:
    294
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    BTW i will need to use preg_match right? And if you dont mind, what was its syntax? :|
     
    born2hack, Oct 16, 2008 IP