RE: [PHP] How to make HTTP call to another address?
[snip] I've recently set up some Tomcat/Java/Servlet stuff that provides some high-level functions I wish to make available from PHP. In other words, from PHP, I want to make an HTTP call to an address like: http://mycompany.com/myservlet?request=doSomething&arg1=meat&arg2=potato es and then use the returned stream of data to service the original PHP request. Clear? [/snip] There is always cURL http://www.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to make HTTP call to another address?
I sometimes wonder why we keep ignoring lowly old include("http://yoururlhere.com";); -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to make HTTP call to another address?
I would suggest using the PEAR HTTP_Request package for single-shot requests and HTTP_Client for multiple requests to the same server (like if you need your script to login first). http://pear.php.net/packahe/HTTP_Request http://pear.php.net/packahe/HTTP_Client On Mon, 12 Jul 2004 11:24:19 -0600, Matt Busche <[EMAIL PROTECTED]> wrote: > I've recently set up some Tomcat/Java/Servlet stuff that provides some > high-level functions I wish to make available from PHP. In other words, > from PHP, I want to make an HTTP call to an address like: > > http://mycompany.com/myservlet?request=doSomething&arg1=meat&arg2=potatoes > > and then use the returned stream of data to service the original PHP > request. Clear? > > I quickly found the PHP HTTP library ( > http://www.php.net/manual/en/ref.http.php ), but my quick perusal makes me > think this is only useful for controlling the HTTP response sent back to the > browser making the original PHP request. > > Can someone help me? > > FYI: I'm a newbie. Please forgive me if this is an old-hat question. > > Matt > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > !DSPAM:40f3848311391443210090! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to make HTTP call to another address?
I've recently set up some Tomcat/Java/Servlet stuff that provides some high-level functions I wish to make available from PHP. In other words, from PHP, I want to make an HTTP call to an address like: http://mycompany.com/myservlet?request=doSomething&arg1=meat&arg2=potatoes and then use the returned stream of data to service the original PHP request. Clear? I quickly found the PHP HTTP library ( http://www.php.net/manual/en/ref.http.php ), but my quick perusal makes me think this is only useful for controlling the HTTP response sent back to the browser making the original PHP request. Can someone help me? FYI: I'm a newbie. Please forgive me if this is an old-hat question. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php