cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Debug HTTPS Curl Request

From: Shanshui Liu <me_at_lx.sg>
Date: Wed, 10 Nov 2010 09:52:18 +0800

Hi Daniel,

There's a possibility that the server is choking on the POST data that is
sent as multipart/form-data instead of the
usual application/x-www-form-urlencoded. Try converting the array
for CURLOPT_POSTFIELDS to an urlencoded string
(name1=value1&name2=value2&...) and see if it works.

With regards,
Liu Shan Shui
http://lx.sg/
"Life would be much easier if I had the source code." - Anonymous

On Tue, Nov 9, 2010 at 5:53 AM, Daniel Cole <dcole_at_wehostit.com.au> wrote:

> Hi Shiplu,
>
>
>
> I have tried to replicate the process using the command line version of
> cURL but I’m afraid I’m a bit out of my depth here. I have attached a copy
> of the PHP script that is run (note: this is invoked from a separate
> script). As you will be able to see it deals with cookies and logging in.
>
>
>
> If you could please provide some pointers on how to perform this action
> from the command line would be greatly appreciated.
>
>
>
> Thanks,
>
> Daniel
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2010-11-10