Re: [PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Jason Cipriani
On Thu, Mar 5, 2009 at 1:48 AM, Manuel Lemos wrote: > Hello Jason, > > on 03/05/2009 03:17 AM Jason Cipriani said the following: >>>> Thanks. I actually had a look at the HttpRequest source code, and I >>>> can see the logic where it switches to multipart encoding

Re: [PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Jason Cipriani
On Thu, Mar 5, 2009 at 12:48 AM, Manuel Lemos wrote: > Hello, > > on 03/05/2009 02:31 AM Jason Cipriani said the following: >> Thanks. I actually had a look at the HttpRequest source code, and I >> can see the logic where it switches to multipart encoding if files are >&

Re: [PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Jason Cipriani
On Wed, Mar 4, 2009 at 7:12 PM, Shawn McKenzie wrote: > Jason Cipriani wrote: >> On Wed, Mar 4, 2009 at 2:10 PM, Shawn McKenzie wrote: >>> Jason Cipriani wrote: >>>> Is there a way to force PECL to use multipart/form-data encoding for >>>> all post fiel

Re: [PHP] Re: Sending multipart/form-data request with PECL.

2009-03-04 Thread Jason Cipriani
On Wed, Mar 4, 2009 at 2:10 PM, Shawn McKenzie wrote: > Jason Cipriani wrote: >> Is there a way to force PECL to use multipart/form-data encoding for >> all post fields added with addPostFields, even when you are not >> calling addPostFile to add a file? > > Try: setCo

[PHP] Sending multipart/form-data request with PECL.

2009-03-04 Thread Jason Cipriani
I am trying to submit a request to an HTTP server with multipart/form-data encoded data. I'm using PECL's HttpRequest (although I'm open to alternatives). I am using PHP5. I noticed that if you call addPostFile to add a file, PECL will send the file, and all other post parameters, with multipart/f

Re: [PHP] [PHP 5.2.8] Retrieve cookies from remote host and pass them back to client.

2009-02-13 Thread Jason Cipriani
On Fri, Feb 13, 2009 at 1:03 PM, Andrew Ballard wrote: > On Fri, Feb 13, 2009 at 12:42 PM, Jason Cipriani > wrote: >> >> I have a PHP 5.2.8 web application that needs to retrieve a resource >> from a remote URL. However, the remote host also sends a cookie back >> (

[PHP] [PHP 5.2.8] Retrieve cookies from remote host and pass them back to client.

2009-02-13 Thread Jason Cipriani
I have a PHP 5.2.8 web application that needs to retrieve a resource from a remote URL. However, the remote host also sends a cookie back (in a Set-Cookie header), and I need to grab that cookie and pass it on to the client (so that it's stored by the client browser). I do know the name of the cook