cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

3
votes
2answers
7k views

Ubuntu 11.10, using wget/curl fails with ssl

On a completely new install of Ubuntu I'm getting the following errors when using wget: wget https://test.sagepay.com --2012-03-27 12:55:12-- https://test.sagepay.com/ Resolving test.sagepay.com... ...
0
votes
1answer
706 views

PHP, Apache and curl: Differences between Windows and Linux?

I'm trying to run my php App on Ubuntu Server 11.10. This App works fine under Apache + PHP in windows. I have other applications that I can simply copy&paste between the 2 OS and they work on ...
1
vote
2answers
715 views

SSL on Apache seems to significantly affect WebDAV performace

I'm using Apache 2.2 running on Windows Server 2008 R2 as a WebDAV server for clients to upload large media files (roughly 100-2000MB). I am finding that when I have SSL enabled (openSSL 0.9.8o) and ...
0
votes
2answers
473 views

Does PHP script itself count as a process?

My server has a limited number of concurrent processes (20) it can handle. To make sure I don't exceed I need to understand: When a user is waiting for a PHP script to finish loading, does the ...
0
votes
1answer
1k views

curl installation and upgrade

On a centos 5.7 machine we had curl 7.15 installed . We also have PHP installed in it as some of the PHP libraries are linked to curl. We wanted to upgrade curl to 7.19 but yum update was failing . ...
0
votes
1answer
1k views

Error when installing curl debian squeeze

I have set up an [ISPconfig][1] server and am now trying to install curl. I'm using apt-get to install php5-curl and it seems to be throwing up an error. After I press "y" to accept the install it ...
0
votes
1answer
357 views

curl cookie and cookiejar trouble

I've got a script that curls a site using a specific cookie value in a cookie file. When I run this on my local system, the server returns the same value to my cookie jar, as per my expectations. When ...
0
votes
1answer
234 views

CURL not working in node.js in CentOS 5.7, but works fine in debian 2.6.32-5

working on an app in node.js, On the test server (debian 2.6.32-5) it works flawlessly, on CentOS 5.7 I get an error. using the curlrequest node.js library, and the error that comes up is "failed to ...
3
votes
1answer
195 views

Problems restarting Apache - Curl related

I'm having a problem compiling LAMP, I have everything compiled and working, but when I try to restart apache I get the following error: seg fault or similar nasty error detected in the parent ...
1
vote
2answers
5k views

Using curl to request URL that redirects to relative URL with anchor tag

I'm using curl to request a URL that redirects to a different URL using a Location: line like: Location:/path/to/resource#name As I understand it, that line in the redirect response is invalid per ...
0
votes
1answer
394 views

how to make curl uploads faster with firewall

We recently moved a new server and are facing the slow upload issues . We suspect this because of firewall . how do I make sure applications like ftp,curl become faster with firewall. Any inputs ...
0
votes
1answer
84 views

File uploads taking more time

We recently moved to a new server. We have observed that the file upload done from the ftp command is taking around 5sec for 5MB file. But same file uploaded through CURL command is taking about 140 ...
3
votes
3answers
4k views

How to change libcurl SSL backend from gnutls to openssl on Ubuntu server

I am getting gnutls specific errors in my Tornado webserver while processing Google OpenID SSL responses. One of the suggestions I got from Tornado mailing list is to try OpenSSL backend instead of ...
0
votes
2answers
176 views

my share hosting has disabled all socket functions

I have hosted my website with squarebrothers.com They have disabled curl_exec, fsockopen, socket_create functions. They say that these are security vulnerabilities and they have blocked. And they ...
0
votes
2answers
2k views

Enabling CURL on Ubuntu 11.10

I have installed curl: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl and I have updated my php.ini file to include(I also tried .so): extension=php_curl.dll To test if curl is ...
3
votes
1answer
687 views

Using curl to make a HEAD request with a hard timeout

I'd like to use curl to send a HTTP HEAD request to a URL to verify that it is working correctly (server is up and sends a successful response). At the end, I need the final HTTP response code ...
8
votes
4answers
7k views

How is it possible that I can do a host lookup but not a curl?

Has anyone ever seen this before? Note that this happens not only with google.com, but with every domain I try. It's a wireless connection (WEP), but I'm not sure how that would be relevant: $ curl ...
1
vote
2answers
536 views

CURL - saving multiple HTTP responses

I've learned that we can send multiple HTTP requests with CURL by doing this: curl -I http://linuxbyexample.co.nr http://lne.blogdns.com/lbe or this: xargs curl -I < url-list.txt How can we ...
2
votes
0answers
1k views

What is the difference between installing libcurl4-gnutls-dev or libcurl4-nss-dev in ubuntu 11.10?

For a software that I am installing in an ubuntu server, it needs the curl deb packages. When I try to install libcurl4-dev it says that this is a virtual package and I need to install ...
0
votes
1answer
200 views

PHP CURL Enable Linux

I have some php scripts that I've been running on an Apache server on a windows machine. These scripts use curl which isn't enabled by default in php. For windows enabling it was as easy and ...
0
votes
1answer
2k views

How to use cURL to FTPS upload to SecureTransport (hint: SITE AUTH and client certificates)

I'm trying to connect to SecureTransport 4.5.1 via FTPS using curl compiled with gnutls. You need to use --ftp-alternative-to-user "SITE AUTH" per http://curl.haxx.se/mail/lib-2006-07/0068.html Do ...
0
votes
1answer
2k views

curl --ftp-ssl to grab all files in remote directory

Is it possible to get all files in a directory using curl? Here's my string so far: curl --ftp-ssl -k ftp://user:pass@IP This will LIST the files in the user FTP directory, how do I adjust this ...
1
vote
2answers
1k views

curl SSL issue with RapidSSL certificates

I'm getting the famous "SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed" problem when attempting to curl a domain that has a rapidssl certificate installed. I'm running Ubuntu ...
0
votes
3answers
348 views

using curl to trigger a notification over http e.g. when a long running task has completed?

Today I left work with a long running task running in the shell. For the sake of argument let's say I'm using 'wc -l' to count lines in a huge file. I'd like to get a notification when it is done, but ...
2
votes
4answers
1k views

Install Fedora Source package on RHEL / CentOS

I'm attempting to upgrade curl on RHEL / CentOS machines. I've found what seems to be the appropriate source packages in a number of repos. (ie, ...
0
votes
1answer
172 views

cURL on Linux not compiled, although installed,why?

the phpinfo() shows but when i install zencart on my vps hosting. it shows why? how to correct it?
0
votes
1answer
939 views

how to install npm if couldn't resolve npmjs.org

when m doing curl it says could not resolve host what can i do ? curl http://npmjs.org/install.sh | sudo sh curl: (6) Couldn't resolve host 'npmjs.org' http://npmjs.org/ /etc/resolv.conf search ...
1
vote
1answer
979 views

How do you enable SSL for PHP cURL on Linux?

That's all there is to my question: how do you enable SSL for PHP cURL on Linux (specifically Ubuntu)? I'm not finding the answer by Googling it.
0
votes
1answer
190 views

curl scrables accented characters

I'd like to transfered a url with curl, but the accented characters are scrambled. This is what I get: Bulletin cÙtier pour la bande des 20 milles de Port Camargue ‡ Saint<br> Raphael le mardi ...
1
vote
1answer
3k views

Curl POST - 411 Length Required

We have a RestFUL API we build in PHP. If we make the request: curl -u api-key:api-passphrase https://api.domain.com/v1/product -X POST We get back: 411 - Length Required Though if we simply add ...
0
votes
4answers
3k views

Install PHP 5.1.2, Requires: libcurl.so.3()(64bit) error

I'm trying to install php 5.1.2 on a CentOS 6 server (for grandfathering in old websites). I downloaded an RPM file ( php-5.1.2-5.x86_64.rpm ), but when I use: yum install php-5.1.2-5.x86_64.rpm I ...
5
votes
2answers
4k views

How do I pipe the output of uptime/df to curl?

I want to send the output of uptime and df commands to a web app using cURL. I tried: uptime | curl http://someurl.com -T - But that didn't seem to send the data. What is the proper way to send ...
3
votes
2answers
699 views

Curl always returns same 404 page

No matter what URL I specify for curl I always get the same HTML 404 Error page back. If I use the --verbose option, it looks like curl always connects to the same IP address. $ curl --verbose ...
3
votes
1answer
4k views

How to log outgoing http requests from PHP + cURL?

I have a PHP script set up that makes cURL requests whenever an action is performed on a site. The problem is that the information is being POSTed twice whenever the action is run. I need to work ...
1
vote
1answer
191 views

How to send a local file and expect other file?

I'm trying to make a simple web call work in command line mode and what I would like to do is: send a document file to http://domain.com/convert/ receive as the response a PDF file I can see that ...
1
vote
2answers
487 views

Curl - download file range

I'm trying to download a range of files using curl. curl -R -O -z /dir/file1.png http://somesite.com/file[1-100].png The problem I'm having is how to make the "file1.png" change to the approperate ...
0
votes
2answers
700 views

Why cant Perl find my Curl library?

I created a new module using h2xs which built a module tree for me and a bunch of files. Git as far as running make test but then make failed saying it couldnt find WWW::Curl, but I had installed ...
1
vote
2answers
257 views

Installing cURL 7.19 on ubuntu

I am transferring from a server with Ubuntu on to one with CentOS and I am encountering a problem regarding cURL. Our current site runs cURL 7.19 but Centos yum only finds 7.15. I get an error with ...
0
votes
1answer
285 views

Curl doesn't work in crontab

I'm new to set up server settings and to the whole unix thing so maybe this is simple. I'm trying to start crontab with curl in but it doesn't work. I want it go to file and send email every 30 ...
0
votes
2answers
14k views

How do I use curl in a cron job?

I need to set up a cron job in cpanel that calls a URL (on the same server) once a week. I was going to use wget but it turns out this is disabled on the shared server being used. Is there an ...
1
vote
1answer
2k views

Nagios + check_http with header data

With cURL, I can successfully log into the website I want have Nagios test by passing --cookies. Something like this: curl --cookie "user=4reqrerqwr;userlogin=123adsfjlk324" ...
2
votes
1answer
92 views

Editing hosts file of my Mediatemple DV container

I have a PHP script in a Mediatemple (dv) server that uses cURL to post data to a remote website. This remote website also resides in a (dv) server and doesn't have a domain name yet. I can only ...
0
votes
3answers
122 views

How to intentionally degrade an outbound connection in linux

I am testing the timeout handling for an outbound CURL in a PHP app I am developing after an outage at an affiliate brought down my site. I am looking for a way to intentionally slowdown or ...
-2
votes
1answer
155 views

how to install some extensions on my centos (vmware)VPS with Cpanel

I require the following extensions to be installed for a software to work-- * pdo_mysql extension * curl extension * zip extension - for automatic updates * ftp extension - for automatic updates * ...
0
votes
3answers
2k views

download only new files from ftp using WGET/cUrl

i have Windows 2008 Server on which i store DB backups on daily basis. I want to be able to download new files only using wget, curl or windows built-in FTP doesn't matter. Can you help me with ...
1
vote
1answer
283 views

FreeBSD Dump with cURL/rsync

I'm trying to create a backup script using FreeBSD's dump to take a snapshot of a filesystem, but instead of storing the snapshot on disk I want to pipe the output from dump into cURL or rsync so its ...
1
vote
1answer
617 views

How can I use curl to upload and post a file with the following form?

The form html from the page I'm trying to upload to is as follows: <form action="upload_handler" method="POST" enctype="multipart/form-data"> <input type="file" name="myfile"> ...
5
votes
1answer
3k views

Trying to install pecl Solr extension but it needs curl

When I try to install solr-beta: pecl install solr-beta I get this error: pecl/solr requires PHP extension "curl" No valid packages found install failed The thing is curl is already installed and ...
1
vote
0answers
86 views

What is PHP cURL and libcurl version relationship?

I'm running php with curl support on a mac. cURL in php works fine(ish) but I noticed an oddity reported by phpinfo(). It states that curl support is 7.19.7 But using the otool command, I get this: ...
0
votes
1answer
130 views

Services Similar to Cronless?

Are there any other well known cron alternative services to manage large amounts of automated tasks, such as curl'ng a url at a certain frequency? The only one I have found is cronless.com