|
Posted by Manuel Lemos on 03/13/07 03:28
Hello,
on 03/12/2007 10:47 AM Jonah Bishop said the following:
> I'm porting some code from C++ to PHP, and the C++ application I'm
> porting from uses the cURL library (http://curl.haxx.se/). The library
> is used to both make requests to an internal website at my work and to
> look at the returned HTTP response codes (200, 401, 404, etc). It then
> takes appropriate action, based on the response code that was
> returned.
>
> Assuming I was unable to use the cURL library in my PHP code (due to
> mostly non-technical reasons), what alternatives do I have to do user
> authentication and checking the resulting HTTP response codes? I have
> been pointed to the Snoopy class hosted at SourceForge (http://
> sourceforge.net/projects/snoopy/), but it cannot handle HTTPS
> authentication without the cURL library. Are there native calls
> available for me to do this kind of thing? If so, what are they?
You may want to try this HTTP client class. It can handle HTTPS without
Curl as it uses the fsockopen call to establish HTTP connections. It
also supports many types of authentication including Basic, Digest, NTLM
(Windows or Samba).
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Navigation:
[Reply to this message]
|