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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 5, 2009 at 1:48 AM, Manuel Lemos <mlemos@xxxxxxx> 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 actually appears that it's not possible to force it to
>>>> do that. It's sort of annoying that it's right at my finger tips but
>>>> there's no way to do it, and for sort of a silly reason (there's
>>>> arbitrarily no way to pick which encoding to use, it decides for you
>>>> even though it has the capability of doing anything). A custom PECL
>>>> build is not an option, unfortunately.
>>>>
>>>> I'll have to check out the httpclient class that Manuel Lemos mentioned.
>>> Yes, the HTTP client class follows the same logic but has a variable
>>> named force_multipart_form_post that you can set to make it send
>>> multipart form posts as if you were submitting a form with an empty file
>>> input.
>>
>>
>> Thanks; is there documentation for this anywhere?
>
> Sorry, not yet, but the example scripts have plenty of commented code
> that pretty much explains how to do what you need. For sending POST
> requests, take a look at the test_http_post.php example script. For
> further support requests about this class, try the support forum:
>
> http://www.phpclasses.org/discuss/package/3/

Awesome, thanks. The code was clear enough that I was able to make it
work pretty easily. It seems to be doing everything that I want. Nice
work!

Thanks again!
Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux