fmII
Mon, May 12th home | browse | articles | contact | chat | submit | faq | newsletter | about | stats | scoop 03:29 PDT
in
Section
login «
register «
recover password «
[Project] add release | add branch | add screenshot | broken links | change owner | email subscribers | update project | update branch (urls) [Project]

 HTTP client request class - Default branch
Section: Unix

 

Added: Sun, May 20th 2001 22:46 PDT (6 years, 11 months ago) Updated: Tue, Mar 18th 2008 01:16 PDT (1 month, 25 days ago)


Screenshot About:
HTTP client is a PHP class for making HTTP requests. It can establish connections via a SOCKS server, send requests via a proxy server, and establish secure connections (HTTPS) with optional SSL client certificates. It supports HTTP authentication mechanisms like HTTP Basic, HTTP Digest, and NTLM (Windows or Samba). It submits POST requests with user-defined form values, file uploading, or with user-defined request bodies. It handles cookies and automatic redirection handling. There is an addon class to log in to Yahoo and execute actions on behalf of the user, like exporting the address book or sending invitations to Yahoo groups.

Author:
Manuel Lemos [contact developer]

Rating:
8.33/10.00 (2 votes)

Homepage:
http://www.phpclasses.org/httpclient
Mirror site:
http://en.static.phpclasses.org/browse/package/3.html
Demo site:
http://www.phpclasses.org/browse/file/9401.html

Trove categories: [change]
[Development Status]  6 - Mature
[Environment]  Web Environment
[License]  Freely Distributable, OSI Approved :: BSD License (original)
[Operating System]  OS Independent
[Programming Language]  PHP
[Topic]  Internet :: WWW/HTTP, Software Development :: Libraries :: PHP Classes

Dependencies: [change]
PHP SASL (optional)
[download links]

 
Project admins: [change]
» Manuel Lemos (Owner)

» Rating: 8.33/10.00 (Rank N/A)
» Vitality: 0.72% (Rank 561)
» Popularity: 2.92% (Rank 1532)

project statsdownload stats
(click to enlarge graphs)
   Record hits: 43,747
   URL hits: 10,850
   Subscribers: 58

Projects depending on this project:
freshmeat Project Query Class
PHP PrintIPP


Other projects from the same categories:
J2J
AjaxFTP
Borges
Install Webserver
man2web

Users who subscribed to this project also subscribed to:
Zip
Streamline
bigloo
iptables-p2p
Transvn


Add comment · Rate this project · Subscribe to new releases · Ignore this project · Email this project to a friend · Project record in XML

 Branches

Branch Version Last release License URLs
Default 2008.03.18 18-Mar-2008 BSD License (original) Homepage

 Comments

[»] Example of test_http_post.php with authentication
by Nick Lewis - Jul 12th 2007 09:25:43

I do not understand how to do a http post with digest authentication using the http.php class file.

Would it be possible to add digest authentication to the test_http_post.php example to help me please

[reply] [top]


    [»] Re: Example of test_http_post.php with authentication
    by Manuel Lemos - Jul 12th 2007 10:27:55


    > I do not understand how to do a http

    > post with digest authentication using

    > the http.php class file.

    >

    > Would it be possible to add digest

    > authentication to the test_http_post.php

    > example to help me please

    You need to include the SASL class. That is listed on the package dependencies.

    BTW, in the future please use the package discussion forum, as it is easier for me to provide support there.

    [reply] [top]


[»] FTP mirror
by milky - Aug 16th 2005 08:42:06

archived version is downloadable at ftp://ftp.berlios.de/pub/fpc/httpclient/

[reply] [top]


[»] Supporting HTTP Digest Authentication
by Sérgio Nunes - May 21st 2004 09:58:51

Hi,

are you planning on adding support for HTTP *Digest* Authentication ?

I can't seem to find any work on Digest Auth for PHP.

[reply] [top]


    [»] Re: Supporting HTTP Digest Authentication
    by Manuel Lemos - May 21st 2004 10:21:53


    > are you planning on adding support for

    > HTTP *Digest* Authentication ?

    >

    > I can't seem to find any work on Digest

    > Auth for PHP.


    I was not planning but I can add it if there is anybody with a server page requiring Digest Authentication willing to test it. I also accept patches to make that happen faster.

    [reply] [top]


      [»] Re: Supporting HTTP Digest Authentication
      by Tom Lianza - Oct 24th 2005 13:55:37


      >

      > % are you planning on adding support

      > for

      > % HTTP *Digest* Authentication ?

      > %

      > % I can't seem to find any work on

      > Digest

      > % Auth for PHP.

      >

      >

      >

      > I was not planning but I can add it if

      > there is anybody with a server page

      > requiring Digest Authentication willing

      > to test it. I also accept patches to

      > make that happen faster.


      I'm pretty sure this page requests Digest Authentication:
      http://services.msn.com/svcs/hotmail/httpmail.asp

      When I try to connect to it, I get an error from the http class that says "Error: authentication error: it was not requested any of the authentication mechanisms that are supported" and the headers mention WWW digest. Would it be possible for you to test against that server? It would open up the ability for someone to create a PHP frontend to hotmail also, if they so desired.

      [reply] [top]


        [»] Re: Supporting HTTP Digest Authentication
        by Manuel Lemos - Oct 24th 2005 14:06:45


        > % % are you planning on adding support

        > % for

        > % % HTTP *Digest* Authentication ?

        > % %

        > % % I can't seem to find any work on

        > % Digest

        > % % Auth for PHP.

        > %

        > %

        > %

        > % I was not planning but I can add it

        > if

        > % there is anybody with a server page

        > % requiring Digest Authentication

        > willing

        > % to test it. I also accept patches to

        > % make that happen faster.

        >

        >

        >

        > I'm pretty sure this page requests

        > Digest Authentication:

        > http://services.msn.com/svcs/hotmail/httpmail.asp


        Great. You are right. It requests HTTP Digest authentication. Thanks for the tip.


        > When I try to connect to it, I get an

        > error from the http class that says

        > "Error: authentication error: it was not

        > requested any of the authentication

        > mechanisms that are supported" and the

        > headers mention WWW digest. Would it be

        > possible for you to test against that

        > server? It would open up the ability

        > for someone to create a PHP frontend to

        > hotmail also, if they so desired.


        Yes, that is the message that should appear when the requested authentication method is not yet supported.

        This should be sufficient to let me test a new SASL class plug-in that implements HTTP Digest authentication. I will try to develop that ASAP. Hang on.

        [reply] [top]


          [»] Re: Supporting HTTP Digest Authentication
          by Tom Lianza - Oct 25th 2005 10:59:23


          > This should be sufficient to let me test

          > a new SASL class plug-in that implements

          > HTTP Digest authentication. I will try

          > to develop that ASAP. Hang on.

          I'm not sure if this is helpful, but in the comments for the fopen function someone posted some code that appears to interact (as a client) with HTTP digest servers, although they're using it specifically to do a file download:
          http://us2.php.net/manual/en/function.fopen.php#51592

          [reply] [top]


            [»] Re: Supporting HTTP Digest Authentication
            by Manuel Lemos - Oct 26th 2005 22:35:57


            > I'm not sure if this is helpful, but in

            > the comments for the fopen function

            > someone posted some code that appears to

            > interact (as a client) with HTTP digest

            > servers, although they're using it

            > specifically to do a file download:

            > http://us2.php.net/manual/en/function.fopen.php#51592

            >

            I see. That may work in some cases, but the implementation is not really error proof. It is better to follow the HTTP Digest RFC to learn how to do it right.

            Meanwhile I implemented it now. Both HTTP and SASL classes were updated to make it work. It can authenticate with Hotmail, but keep in mind that Microsoft restricts the access to Hotmail via Outlook Express to paying subscribers.

            [reply] [top]


            [»] Re: Supporting HTTP Digest Authentication
            by Manuel Lemos - Nov 8th 2005 13:06:49

            In case you have not noticed, both the SASL package and the HTTP client class were updated and they support HTTP Digest authentication now.

            [reply] [top]


[»] test_http_cookies.html
by Bob Gorman - Apr 16th 2002 16:40:06

Need to change the default host_name to "www.phpclasses.org".

[reply] [top]


    [»] Re: test_http_cookies.html
    by Manuel Lemos - Apr 16th 2002 23:47:59


    > Need to change the default host_name to
    > "www.phpclasses.org".
    >

    I updated it but the URL is equivalent. Thanks for the concern anyway.

    [reply] [top]




© Copyright 2008 SourceForge, Inc., All Rights Reserved.
About freshmeat.net •  Privacy Statement •  Terms of Use •  Trademark Guidelines •  Advertise •  Contact Us • 
ThinkGeek •  Slashdot  •  ITMJ •  Linux.com •  NewsForge  •  SourceForge.net  •  Surveys •  Jobs •  PriceGrabber