Solved

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

Posted on 2009-04-15
1
192 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
Comment Utility
Figured it out.  Found a very nice troubleshooting cURL script that helped me detect that the problem was with the URL :)
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
WSDL Soap Error 12 241
I starting with php 12 90
jQuery Date picker not working 16 70
JQuery tracking event. 3 38
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now