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 if files are present but it

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

2009-03-04 Thread Manuel Lemos
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 if files are >>> present but it actually appears that it's not possible to force it to >>> do

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 >> present but it actually ap

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

2009-03-04 Thread Manuel Lemos
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 > present but it actually appears that it's not possible to force it to > do that. It's so

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 fields added with addPostFields, even when you a

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

2009-03-04 Thread Shawn McKenzie
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 fields added with addPostFields, even when you are not >>> calling addPostFile to add a file? >> Try: setCont

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: setContentType() Thanks! But, I t