RE: [PHP] No Reply From cURL
| From: | Jonathan Rosenberg \(Tabby's Place\) | Date: | Thu, 21 Nov 2002 22:16:01 +0000 |
| Subject: | RE: [PHP] No Reply From cURL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125521@lists.php.net to get a copy of this message | ||
I suspect your problem is that CURL is not built with SSL support. To test
this, replace the https:/.../ with a reference to a non-SSL URL
(http://.../). If you get a return that, you need to build CURL with SSL
support.
--
JR
> -----Original Message-----
> From: Steve Keller [mailto:skeller@healthtvchannel.org]
> Sent: Thursday, November 21, 2002 14:04 PM
> To: php-general@lists.php.net
> Subject: [PHP] No Reply From cURL
>
>
> I apologize for being a pest about this, I'm just not getting it.
>
> I'm attempting to open a connection to NetLedger to post an XML file. I'm
> attempting this basic code, which is pretty much what I find everywhere:
>
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL,
> "https://partners.netledger.com/SmbXml");
> curl_setopt($ch, CURLOPT_POST, 1);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
> curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
> curl_setopt($ch, CURLOPT_VERBOSE, 1);
> curl_setopt($ch, CURLOPT_POSTFIELDS,$postData);
>
> $result = curl_exec ($ch);
> curl_close($ch);
> echo $result;
>
> And I'm getting no result back so I can't even see what error I'm getting.
>
> I'm using PHP 4.2.3, with OpenSSL/0.9.5a and compiled as follows:
>
> './configure' '--with-apxs=/usr/local/www/bin/apxs'
> '--with-mysql=/usr/local/' '--with-gd=/usr/local/'
> '--with-freetype'
> '--with-imap' '--with-curl'
>
> Also, how do I include a file in the postData? Can someone point me to a
> good page about HTTP where I can read about doing that?
> --
> S. Keller
> UI Engineer
> The Health TV Channel, Inc.
> (a non - profit organization)
> 3820 Lake Otis Pkwy.
> Anchorage, AK 99508
> 907.770.6200 ext.220
> 907.336.6205 (fax)
> Email: skeller@healthtvchannel.org
> Web: www.healthtvchannel.org
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>