?
Solved

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

Posted on 2009-04-15
1
Medium Priority
?
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

762 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