cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

0
votes
1answer
379 views

Curl get of .cgi file, Always 504 gateway time out

I have a ip cam and I use Get method to switch on the alarm. When I use browser everything is ok http://da***.com:808/set_alarm.cgi?user=***&pwd=***&motion_armed=1" If a try to use this ...
1
vote
0answers
313 views

cURL Chain Issues

On Ubuntu 13.10 running the system curl: curl --version curl 7.32.0 (x86_64-pc-linux-gnu) libcurl/7.32.0 OpenSSL/1.0.1e zlib/1.2.8 libidn/1.28 librtmp/2.3 Protocols: dict file ftp ftps gopher http ...
-4
votes
1answer
64 views

Killing a bash sh script [closed]

I made an .sh file load.sh which has (almost) unlimited loop of curl requests. I run this as $ bash load.sh. Now it just keeps running the loop. I can't cancel its execution. It keeps running. I ...
0
votes
1answer
83 views

Curl pressing enter or ctr+c in order to have the right response [closed]

This is a script that checks my current ip on this site: http://myip.dnsdynamic.org/ and pick the response and calls an API in order to update my dynamic ip. Here the script: curl --user ...
0
votes
3answers
239 views

Is it possible to use curl to accurately stress test a site that has lots of javascript?

I have a web site that has lots of javascript but simple html. I want to try simple stress tests with curl. Is that possible? If I just curl the site I get HTML. So making tons of curl requests won't ...
0
votes
0answers
118 views

VPN route works for browser, but not for Curl

I am using "Cisco AnyConnect Secure mobility Client" to set up a VPN connection. This works just fine for connecting web browsers, but when I tried doing the same connection with Curl I get: About ...
0
votes
1answer
77 views

Protect public directories from download via wget and curl

My users upload their profile images and I save them in a public folder. The file names are not predictable (they are based on md5 hash of user id with salt). When someone views the user's profile, ...
0
votes
2answers
269 views

Cannot curl a file host through apache2

I am trying to download a file using curl from a machine running apache2. My site (000-default) configuration looks like this: <VirtualHost *:80> DocumentRoot /home/user/files/ ...
0
votes
1answer
621 views

Issue installing gcc & curl-devel on Centos OS 5.6

I'm trying to install gcc and curl-devel on CentOS 5.6 (64 bit) server. The command I'm using is: yum install gcc \ curl-devel After running the command it says: No package gcc available. ...
1
vote
0answers
226 views

Amazon EC2 instance of Windows Server 2012- unable to connect to simple webserver

Using Amazon EC2 I have successfully launched a Windows Server 2012 instance and configured it to run a Tomcat webserver. From within the VPS itself, I know the webserver is working because I see the ...
1
vote
2answers
1k views

SSL certificate error connecting to github.com

Starting today (or within the last few days) I've hit an SSL error when trying to connect to github.com (e.g. to clone a repository). This is a legacy server running Red Hat 4.1.2-33. Here's what it ...
5
votes
0answers
154 views

How to use Chrome's CRL sets (or some master CRL list) as a CRL file?

I am looking for a master CRL list. The closest thing I have found is the Chromium project's CRLSets. I used crlset-tools to get the crlset (crlset fetch > crl-set) and then dumped the serial ...
1
vote
1answer
164 views

Command line tools to monitor POST/GET requests of a loaded website

When I load a website with Firefox and open up the Network Profiler, I can see all the POST and GET requests the site is making. I would like this functionality from the command line. Does any one ...
2
votes
0answers
361 views

Unable to load Curl extensions

I am getting this line in my error_log PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/php_curl.dll' This is what I have done: 1. ...
2
votes
4answers
5k views

curl succeeds on an https request, wget does not

When I run curl from the command line curl "https://example.com" It succeeds immediately, returning the result of the request. When I run the same wget command wget https://example.com ...
0
votes
1answer
159 views

curl lot loaded after adding SFTP support

I installed Tartarus, and since my current curl didn't have SFTP support I've done this . Tartarus worked fine but I started to receive mails: PHP Warning: PHP Startup: Unable to load dynamic ...
1
vote
1answer
241 views

curl and multi-line get parameter

I am trying to pass a url-encoded multi-line string as parameter of a GET call to an existing web-service. I think I am getting quite close to the solution with the following: echo -e ...
2
votes
1answer
7k views

Root cause of “curl: (56) SSL read: errno -5961” errors

I was evaluating some SSL failures, and noticed that when I use curl to one of the failing sites, I got curl: (56) SSL read: errno -5961; however, my google queries for that error didn't show the ...
1
vote
1answer
182 views

How to pipe differently the body of the curl answer and the printed output?

I would like to print in the command line some output of curl, like the http headers, followed by the body of the answer processed by a stdin/stdout program. For instance: Print the status code: ...
2
votes
2answers
10k views

How to troubleshoot connectivity when curl gets an *empty response*

I want to know how to proceed in troubleshooting why a curl request to a webserver doesn't work. I'm not looking for help that would be dependent upon my environment, I just want to know how to ...
1
vote
1answer
419 views

SSL connection to Thin through vagrant

I'm running a Rails app that forces SSL and uses HTTP basic authentication inside of a vagrant VM. If I try to make a curl request to the app from my host machine I get curl -k --verbose ...
2
votes
2answers
2k views

How to specify the SSL port with command line curl?

I'm trying to test the SSL connection on one of my servers. The server is behind a LB so it's listening for SSL connections on the port 8090. I have use the --resolve option to test when talking to ...
2
votes
1answer
4k views

SSL23_GET_SERVER_HELLO:reason(1112) issue curl 7.25.0

Please consider two curl commands: curl -v --ssl https://example.com * About to connect() to example.com port 443 (#0) * Trying 10.20.30.40... * connected * Connected to example.com (10.20.30.40) ...
3
votes
2answers
3k views

Download urls listed in a file using curl?

I have a file that has all the urls from which I need to download. However I need to limit one download at a time. i.e. the next download should begin only once previous one is finished. Is this ...
1
vote
0answers
289 views

cURL not loading on Ubuntu 12.04

I have come across a very weird problem. My cURL PHP extension doesn't seem to be running. I have installed cURL using this command: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl And ...
0
votes
1answer
276 views

How to mention the prefix directory path in CURL command

I am new to Linux, i want to write the perl script to download the files from FTP sites but here i want to use curl command to download the files. which is working fine in wget command but not working ...
1
vote
2answers
2k views

CentOS PHP cURL NSS error 5938

Having a strange issue with cURL and PHP on a couple of CentOS boxes. Locally, I'm running CentOS 6.3. Remote is CentOS 5.9 Locally, the box receives a request, scp's a file to the remote server, ...
0
votes
1answer
114 views

How to specify GET path when sending web request to an IP with cURL?

Using output from the command below, % curl -v stackoverflow.com/questions * About to connect() to stackoverflow.com port 80 (#0) * Trying 198.252.206.16... * Connected to stackoverflow.com ...
0
votes
1answer
309 views

Use user's computer as a proxy for cURL [closed]

I am making an application that fetches some data via cURL, it logs in to a site and fetches statistics of a user. But my problem is, that cURL uses the IP of my server, so if I get more than 1 user, ...
1
vote
1answer
386 views

Curl fail to retrieve HTTPS content

i've an issue on my production server running on Debian 6 (apt-get update;apt-get upgrade done with success). When I call an HTTPS (StartSSL) server I got an error message on Debian 6 : #> curl ...
2
votes
0answers
609 views

How to alias a ssl certificate common name?

I have a server, which has a self signed certificate, which I am trying to securely access. I've got the certificate by looking at the output from openssl s_client -connect <ip>, and copied it ...
1
vote
2answers
517 views

curl receiving a 302 or something, weird

I have the following curl command curl -X POST -w "\nRESULT CODE:%{http_code}\n" --insecure --header "Content-Type:application/json" --user robot-midc:1ZSXM7 -d @table.json ...
0
votes
0answers
763 views

can ping outgoing servers but cannot telnet to port 80 on http servers

I'm able to ping servers on the internet but cannot effectively curl websites or telnet to port 80 in general. there are no outgoing firewall rules and iptables is disabled. [root@rl ~]# ping ...
3
votes
1answer
369 views

Why does curl give a different response for $_SERVER['REQUESTI_URI'] than browsers?

I have a simple test PHP page: <?php echo $_SERVER['HTTP_HOST'] . '<br/>'; echo $_SERVER['REQUEST_URI']; ?> When I access this page with a browser (I've tested chrome, and links) it ...
0
votes
1answer
49 views

Apache not serving HTTPS to localhost

This just started being a problem (likely after a software upgrade?). The relevant config bits are: <VirtualHost *:80> ServerAdmin webmaster@singpolyma.net ServerName singpolyma.net ...
3
votes
2answers
2k views

OpenSSL issues in Debian Wheezy

I don't know what is exactly going on but I noticed that curl couldn't get secure pages without adding extra switches. ~# curl -v https://api.dreamhost.com * About to connect() to api.dreamhost.com ...
0
votes
0answers
304 views

Php doesn't get that Curl has SSL enabled

OS is Centos 6. I manually installed curl-7.27.0 with SSL enabled. curl --version curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.27.0 OpenSSL/1.0.0 zlib/1.2.3 c-ares/1.9.1 But my PHP doesn't ...
4
votes
2answers
2k views

Why are DNS lookups not respecting /etc/nsswitch.conf & /etc/host.conf?

I have an issue where hostnames are being looked up from DNS even though they are present in /etc/hosts. I have the following configured: /etc/host.conf: order hosts,bind /etc/nsswitch.conf: ...
0
votes
1answer
157 views

On my virtual EC2 instance, what is my IP will a webpage detect if I curl it?

I have one small server on EC2. Let's say I cURL facebook.com. What IP will facebook see as the "client address"? Is it random?
0
votes
1answer
655 views

How to update curl version on ubuntu 8.04?

On my system 8.04, curl 7.18.0 is installed: curl --version shows: curl 7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1 Protocols: tftp ftp telnet dict ldap ldaps ...
0
votes
1answer
126 views

Stange stream of HTTP GET requests in apache logs, from amazon ec2 instances

I just had a look at my apache logs, and I see a lot of very similar requests: GET / HTTP/1.1 User-Agent: curl/7.24.0 (i386-redhat-linux-gnu) libcurl/7.24.0 \ NSS/3.13.5.0 zlib/1.2.5 libidn/1.18 ...
-1
votes
1answer
225 views

Perform HTTP request through non-default gateway (CURL? WGET?) [closed]

I have two ISPs /two routers on my LAN with Windows boxes. Switching default gateway (per PC) works fine, so I can choose my outgoing traffic from particular PC to be initiated from whichever ISP I ...
1
vote
0answers
102 views

Is there a known issue resuming downloads from IIS with curl?

I am seeing an issue when trying to resume a download using curl as follows: curl -L -s -C - -o 'file.data' 'https://sever/file' The issue is only with IIS. I tried several other web servers on OSX ...
0
votes
1answer
906 views

DNS failure crashing web site - CURL requests

My PHP keeps throwing random errors which relate to slow scripts. nginx/php5-fpm report in their error logs that the child has been terminated due to script timeout. PHP5-FPM slow error log reports ...
0
votes
1answer
2k views

SSL error curl/wget unknown protocol/wrong version number

I've been trying to use local hosted https urls in command line/cron jobs and i get those errors. curl output is similar. The same commands, when used in other servers works perfectly. Default ...
0
votes
1answer
76 views

Network request intercept preventing local connections

I'm experiencing a really weird issue on my Ubuntu 10.04 web server where something appears to be intercepting my network requests. Most importantly it's preventing me from performing local ...
0
votes
1answer
241 views

curl fails to take self signed certificate

I've installed apache 2 server with self signed certificate.My browser is showing 'It works!' when I tried to connect to the sever. But from an application when I issued cur_easy_perform() the call ...
2
votes
5answers
3k views

Executing script remotely with “curl | bash” feedback

I'm working on a platform that uses a lot such commands: ssh login@server.com 'curl http://some_server/script.sh | bash' This is really clean and handy to execute scripts remotely, however, I don't ...
0
votes
1answer
262 views

Limiting IP choice from CURLOPT_INTERFACE

I have a server with 6 ip addresses added via cPanel. I'm having troubles limiting the IP address my clients can use as an outgoing IP address in their PHP script. Some of them are running proxies and ...
0
votes
1answer
447 views

libcurl Reporting Different Version Between Commands

I previously had cURL 7.22.0 on Ubuntu 12.04 Server.. but I now need to upgrade to cURL 7.30.0. I've done the following to compile this version for Ubuntu: wget ...