• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

which php class to manage http protocol ?

Hi

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 ?

regs

AC
0
pofpof98
Asked:
pofpof98
1 Solution
 
alain34Commented:
http://uk2.php.net/manual/en/ref.curl.php
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.
0
 
BinkersCommented:
Have you look into curl?
http://www.php.net/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 http://us4.php.net/manual/en/function.curl-setopt.php.
0
 
jdpipeCommented:
I use these tools
Advanced HTTP Client from http://www.phpclasses.org
SimpleBrowser class from browser.php in the SimpleTest package, http://lastcraft.com
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.

JP
0
 
German_RummCommented:
Hi pofpof98,

I would recommend PEAR:
http://pear.php.net/packages.php?catpid=11&catname=HTTP

---
German Rumm.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now