Tutorial :What PHP/Shell Framework can be used to access HTTP-POST/-GET Forms (besides curl)?



Question:

I'm searching an abstraction layer from pure HTTP-POST/-GET using curl. It should somehow make it easy to define the Targeted script and it's variables.

I read something exists in the FreeX (german unix/programming magazine), but don't have the named magazine at hand.

What can I do? Stick with curl? What alternatives do exist?

Thank you in advance :)


Solution:1

As you tagged you question with "perl", you can use Perl. Try LWP - popular module, and much more convenient than curl. For more complex tasks, try WWW::Mechanize.


Solution:2

You might want to look at the HTTP Extension. It looks like a pretty complete abstraction implemented over curl.


Solution:3

If you want something more sophisticated, there is the Zend_Http_Client ZF Component.


Solution:4

You can use Streams to POST also. I generally prefer that over an extension or even cURL since it's core PHP and more likely to be there.

Though, I build open source software that gets installed on machines where the user has low privileges and likely zero control. Your users' options may be different.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »