Comments for PHP HTTP protocol client

12 Jul 2007 10:27 mlemos

Re: Example of test_http_post.php with authentication


> 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 (http://www.phpclasses.org/discuss/package/3/), as it is easier for me to provide support there.

12 Jul 2007 09:25 nicklewis

Example of test_http_post.php with authentication
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

08 Nov 2005 13:06 mlemos

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

26 Oct 2005 22:35 mlemos

Re: Supporting HTTP Digest Authentication


> 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.

25 Oct 2005 10:59 tlianza

Re: Supporting HTTP Digest Authentication


> 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

24 Oct 2005 14:06 mlemos

Re: Supporting HTTP Digest Authentication


> % % 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.

24 Oct 2005 13:55 tlianza

Re: Supporting HTTP Digest Authentication


>

> % 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.

16 Aug 2005 08:42 milky

FTP mirror
archived version is downloadable at ftp://ftp.berlios.de/pub/fpc/httpclient/ (ftp://ftp.berlios.de/pub/fpc/httpclient/)

21 May 2004 10:21 mlemos

Re: Supporting HTTP Digest Authentication


> 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.

21 May 2004 09:58 ssn999

Supporting HTTP Digest Authentication
Hi,

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

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

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.