[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

cURL returns bool(false) after execution -- Never happened before

Posted on 2009-04-15
1
Medium Priority
?
236 Views
Last Modified: 2012-05-06
Hello everyone.

I put together a cURL setup that was working about a week ago and now it is not.  I am wondering if I am doing something wrong to prompt this.  The script hits a URL that is supposed to upload some XML.  When I hit the URL manually, the update on the XML works fine.  However, when I try to hit it via cURL, I just get back a bool(false) when I do a var_dump on the $data variable.

Any ideas as to what could possibly be wrong?

            
$ch = curl_init();
$url = "link to whatever";
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$data = curl_exec($ch);
curl_close($ch);

Open in new window

0
Comment
Question by:Minnickweb
1 Comment
 

Accepted Solution

by:
Minnickweb earned 0 total points
ID: 24149250
Figured it out.  Found a very nice troubleshooting cURL script that helped me detect that the problem was with the URL :)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question