which php class to manage http protocol ?

Posted on 2005-05-04
Last Modified: 2013-12-03

I am looking for a php class to manage http protocol: creating and managing http tags, sending http requests , analysing responses ....

fopen is too basic and wget is an external process.

anything in the middle ?


Question by:pofpof98
    LVL 16

    Accepted Solution

    CURL, Client URL Library Functions
    PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.
    LVL 4

    Expert Comment

    Have you look into curl?
    This supports http and https and is useful for sending posts, gets, etc and reading the resulting website.  The curl_setopt() function can be used to handle the http tags and options
    LVL 7

    Expert Comment

    I use these tools
    Advanced HTTP Client from
    SimpleBrowser class from browser.php in the SimpleTest package,
    The first is good if you just want to submit a form to a site or perform a GET etc.
    The second is good if you need to simulate an entire browser session, with cookies, form fields, clicking links, etc.

    LVL 6

    Expert Comment

    Hi pofpof98,

    I would recommend PEAR:

    German Rumm.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now