Please Help in cURL

Discussion in 'PHP' started by qprojects, Nov 21, 2007.

  1. #1
    I'm new to php and i cant find any good tutorial to learn cURL except [SIZE=-1]www.php.net/curl

    I didnt understand in cURL, how to keep logged into some site (store cookies). Can anyone write any short script which logges into any site, and then makes a post request to any page of the site being logged in? Any help would be appreciated :D
    [/SIZE]
     
    qprojects, Nov 21, 2007 IP
  2. nick-a

    nick-a Active Member

    Messages:
    446
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Have a look at the glype proxy script, it has everything in it you'll need to learn about.
     
    nick-a, Nov 21, 2007 IP
  3. Bryce

    Bryce Peon

    Messages:
    1,235
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I personally use fsockopen() to do http POST's or Get's. Here's a really basic exampls of using cURL PHP - cURL Basics

    As far as logging in, accepting cookies, and working on that data, tcl/tk expect might be what you're looking for but it depends on if you're doing ti from a web interface or a shell access.
     
    Bryce, Nov 21, 2007 IP
  4. qprojects

    qprojects Peon

    Messages:
    1,901
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i heard cURL is faster.
    Its through web interface.
     
    qprojects, Nov 22, 2007 IP
  5. chandubhai

    chandubhai Banned

    Messages:
    556
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Download the class from phpclasses.org and study it
     
    chandubhai, Nov 22, 2007 IP
  6. Bryce

    Bryce Peon

    Messages:
    1,235
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #6
    CURL is more robust but any external library or classes will always be inherently slower than native PHP functions that are compiled into the core functionality.
     
    Bryce, Dec 3, 2007 IP