hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : CURL Problem
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

CURL Problem

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2004, 07:56 AM
grace5 grace5 is online now
Web Hosting Master
 
Join Date: Jul 2002
Posts: 594

CURL Problem


After updating Apache and zend opt. I am having problems with curl (error below) in a credit crad send that worked before. Curl is enabled maybe it was updated also?



CURL support enabled
CURL Information libcurl/7.10.5 zlib/1.1.4

ERROR:
The URL you passed to libcurl used a protocol that this
libcurl does not
support. The support might be a compile-time option that you
didn't use,
it
can be a misspelled protocol string or just a protocol libcurl
has no code
for.

__________________

ChristianJournal.org


Reply With Quote


Sponsored Links
  #2  
Old 07-02-2004, 08:19 AM
zupanm zupanm is offline
Web Hosting Master
 
Join Date: Dec 2001
Location: NYC, NY
Posts: 798
what url are you trying to send? https?

__________________
Blog your life away
http://photoblog.com

Reply With Quote
  #3  
Old 07-02-2004, 08:38 AM
grace5 grace5 is online now
Web Hosting Master
 
Join Date: Jul 2002
Posts: 594
Code:
// Init Connection
$ch=curl_init(cURL);
if (!$ch){
die(sprintf('Error [%d]:
%s',curl_errno($ch),curl_error($ch)));
}

//Set Message options
curl_setopt($ch,CURLOPT_POST,1);
//Set this option to a non-zero value if you want PHP to do a
regular HTTP
POST.
curl_setopt($ch,CURLOPT_POSTFIELDS,$msg); //Pass a
string containing the full data to post in an HTTP "POST"
operation.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Pass a non-zero
value if you want CURL to directly return the transfer instead
of printing
it out directly.

// Execute Command and close connection
$output = curl_exec($ch);
$succeeded = curl_errno($ch) == 0 ? true : false;

curl_close($ch);

__________________

ChristianJournal.org


Reply With Quote
Sponsored Links
  #4  
Old 07-02-2004, 08:43 AM
grace5 grace5 is online now
Web Hosting Master
 
Join Date: Jul 2002
Posts: 594
sorry... not sure how hes doing this look liks like from the code above to be NOT so

__________________

ChristianJournal.org


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Outbound Spam Causing Sleepless Nights? Blog 2013-05-13 09:52:21
How To Deliver Products Customers Will Pay For with David Koston - HostingCon 2012 Web Hosting News 2012-07-18 10:46:16
HostingCon Preview: Q&A with David Koston of Fortuity LLC Web Hosting News 2012-07-10 12:54:20
eleven Survey Lists Spam as Greatest Email Security Threat in Ten Years Web Hosting News 2011-12-02 21:50:09
The Lesson of the Ten, with Jeff Hardy Web Hosting News 2011-08-08 22:12:01


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?