开发者

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

开发者 https://www.devze.com 2023-01-05 08:00 出处:网络
I\'m searching an ab开发者_开发技巧straction layer from pure HTTP-POST/-GET using curl. It should somehow make it easy to define the Targeted script and it\'s variables.

I'm searching an ab开发者_开发技巧straction 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 :)


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.


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消