[FX.php List] is there a way to execute -k option for the curl command

Gjermund Gusland Thorsen ggt667 at gmail.com
Tue Mar 13 02:43:10 MDT 2007


I guess this is what you are looking for:

http://no.php.net/manual/en/function.curl-setopt.php

and you probably have to add a line after these two lines in FX.php:

curl_setopt($curlHandle, CURLOPT_POST, 1);
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $this->dataURLParams);

ggt667

On 3/13/07, jason f. boldt <jason_fb at beezwax.net> wrote:
> We are seeing that we have an SSL site that is complaining when the
> curl command is executed because we are trying to configure the
> address of the machine as "localhost". This would work in a non-SSL
> environment fine, but when using an SSL, "localhost" causes curl to
> die with a warning that the name of the machine does not match the
> SSL certificate.
>
> calling curl with a -k flag would surpress this warning (what we want
> to do). The obvious work-around of setting the server address the
> same as the  certificate (for example: registrationserver.xyz.com)
> doesn't work because the network is setup such that the internal
> router won't properly forward requests for that address (made
> locally) back to the local address of the server. (it is forwarding
> the public requests only, as is expected).
>
> is there a way to specify that the FX object must use the -k flag
> when calling curl?
>
> -Jason
>
> --
>
> jason f. boldt
> jason_fb at beezwax.net
> beezwax datatools inc
> (510) 835-4483 x 104
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list