library (extension) for HTTP Client ??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

library (extension) for HTTP Client ??

Post by claws »

Hello Forum,

I want to know like in perl, does PHP also have library for implementing HTTP Client Functionalities ?
like LWP (short for "Library for WWW in Perl").
Using CURL can we use HTTP GET but can we use HTTP POST/PUT method?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: library (extension) for HTTP Client ??

Post by Christopher »

You an certainly use POST with cURL. I don't know about PUT, but I assume so.
(#10850)
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

Re: library (extension) for HTTP Client ??

Post by claws »

So, Is it that using CURL we can use complete HTTP Protocol Methods(OPTIONS ,GET,HEAD,POST,PUT,DELETE,TRACE,CONNECT) ?

If not please tell me how to use these methods using PHP?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: library (extension) for HTTP Client ??

Post by John Cartwright »

There's also fsockopen()
Post Reply