Помогите с CURL

Discussion in 'Болталка' started by Buffalon, 16 Apr 2010.

  1. Buffalon

    Buffalon Elder - Старейшина

    Joined:
    22 Mar 2008
    Messages:
    241
    Likes Received:
    34
    Reputations:
    8
    Как правильно ??
    <?php
    // HTTP authentication
    $url = "http://www.t35.com/free-web-hosting/signup/index.html .";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POST, 1); // set POST method
    curl_setopt($ch, CURLOPT_POSTFIELDS, "username=sef1efsgsg&password=sessgsges&firstname=sefsef&lastname=sege&email=efef@sef.ru&country=RU&TOS=checked&http://www.t35.com/images/i_submit2.jpg"); // add POST fields

    $result = curl_exec($ch);
    curl_close($ch);
    echo $result;
    ?>
     
  2. Buffalon

    Buffalon Elder - Старейшина

    Joined:
    22 Mar 2008
    Messages:
    241
    Likes Received:
    34
    Reputations:
    8
    ИЛи где почитать пдоробную информацию про CURL