Re: How to make HTTP call to another address?

From: Date: Tue, 13 Jul 2004 14:38:11 +0000
Subject: Re: How to make HTTP call to another address?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190353@lists.php.net to get a copy of this message
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 <spammymatt94@yahoo.com> 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--

« previous php.general (#190353) next »