+ Reply to Thread
Results 1 to 3 of 3

Thread: help me about curl function

  1. #1
    waldopulanco29 is offline x10Hosting Member waldopulanco29 is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    14

    help me about curl function

    i want to retrieve my user id using my php script. there was a time it needs a verification code for anti bot check!! but often it will not need to verify the code. but there a times it will need. and this is my problem, when i directly visit the page using my browser there is no verify code, but when i use my script to visit the page it will need a verify code. im using file_get_contents(). but now i change to curl function so i save the cookie then my script will act as a browser, but no effect it will need verify code.

    please analyse my script and fix it.

    PHP Code:
    $file_path 'cookies.txt';

    $agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13';

    $ch curl_init("http://yt8i12224ll43.yopmail.com/en/mail.php?id=me_ZGNjAGV5ZQR0ZGZjZQNjZQN1AGx2ZN==");

    curl_setopt ($chCURLOPT_USERAGENT$agent);

    curl_setopt($chCURLOPT_RETURNTRANSFER1);

    curl_setopt($chCURLOPT_COOKIEJAR$file_path);

    $HTTP_Response curl_exec($ch);

    curl_close($ch);


    echo 
    $HTTP_Response
    thanks in advance!!!
    Last edited by waldopulanco29; 05-29-2010 at 10:22 AM.

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: help me about curl function

    I don't think we have the option to use curl. Also, you seem to be going about this a very convoluted way.

  3. #3
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: help me about curl function

    The PHP curl extension is installed on all hosts.

    @waldopulanco29: your description of the problem isn't very clear.

    There is extensive curl documentation, and many tutorials on using curl in PHP. Start there.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Help me cURL
    By tientrien in forum Free Hosting
    Replies: 3
    Last Post: 03-27-2009, 01:14 PM
  2. PHP Curl
    By oliversimon in forum Free Hosting
    Replies: 3
    Last Post: 04-08-2008, 07:07 PM
  3. curl
    By william232 in forum Free Hosting
    Replies: 1
    Last Post: 10-21-2007, 03:10 PM
  4. Curl
    By skulldragon3200 in forum Free Hosting
    Replies: 3
    Last Post: 08-19-2007, 11:46 AM
  5. what is the use of curl function?
    By tychicus in forum Off Topic
    Replies: 1
    Last Post: 09-26-2006, 11:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers