cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

0
votes
1answer
23 views

IIS server, using browser I get 200 response - curl I get 302 response

When I use a browser (chromium or firefox) when accessing a page I get the expected results - 200 responses and it displays the information I was expecting. When I use curl, I get a 302 response: $ ...
0
votes
1answer
44 views

curl: (35) SSL connect error

Trying to make a curl https request to Twitter API and get this error. I've tried from another server and it works with no problem. Does anyone know the reason for this error? [root@webscoming ...
2
votes
1answer
36 views

Is it necessary to validate the file integrity when curl succeeded

I have a bunch of files on S3, and I need to download and update them via command line (BASH) on several devices. What I do (as of now): Request the header of the file with -I and extract the ETag ...
0
votes
2answers
27 views

Is there a way to direct a HTTP server to upload file to the other HTTP server? [closed]

In my project, I need to do this: server1 ---http-download (curl)---> my pc ---http-upload(curl)---> server2 This is obviously duplicating traffic. I wonder if there is a method to direct ...
1
vote
2answers
87 views

PHP - does curl run asynchroniously on my system? [closed]

I'm building a web app. I have a database of books indexed in ElasticSearch and REST API written in PHP. In the app, there's a search box, where I type a name of the book and JS script calls the ...
1
vote
1answer
54 views

How do I get cURL errors to go into the correct log file?

I have a website running using Apache 2.2.22, PHP 5.3.10, and cURL 7.2.00. The relevant portions of the apache config is below, and you will notice that errors are sent to www.example.com_error.log. ...
1
vote
1answer
24 views

curl is giving wrong result via ssh

Curl is working fine on the node itself: [ec2-user@smokebase1 ~]$ curl -s -I --retry 3 --header 'Host: smoke-base.dev-test.com' ...
1
vote
0answers
47 views

Publicly available black list for web servers [closed]

I'm a bit surprised to find that there really aren't any publicly available RBLs for web servers. Yes, there's project honeypot but you have to hit their API in realtime in order to check a given IP ...
-1
votes
1answer
104 views

What does “Server ****** is not blacklisted” means in curl verbose output?

Why should the server be blacklisted ? By curl or another program ? How server can get blacklisted ? Is it server or program dependant ? Is this the IP address that get blacklisted, or the name ...
0
votes
0answers
613 views

SSL verification error with git (on github) on Ubuntu 14.04

I'm trying to clone the atom repository that just went fully open-source and I've run into some trouble. Attempting to git clone the repository is producing an SSL error: wug@wugputer:/src/test$ git ...
0
votes
0answers
81 views

cURL NSS error -12286 SSL_ERROR_NO_CYPHER_OVERLAP

Using cURL 7.36.0 (x86_64-redhat-linux-gnu) on EC2 Amazon Linux, I can't connect to certain websites (not all) using HTTPS and receive the above error. From researching the issue I have learned that ...
1
vote
0answers
125 views

Curl Sourced DDoS: How to detect it & how to stop?

Okay, an Ubuntu server I manage fell victim to a DDoS attack today. Usually this is unpleasant but not that big a deal. A few high server load moments & then it passes. Today was clearly ...
0
votes
0answers
130 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
107 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
41 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
43 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
72 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
61 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
0answers
62 views

Tar backup to webdav server: how to split the output file using stdin?

I need some advice on storing a tar file to a webdav server. I'd like to make automated backups of my VPS, however the available space is limited so I can't store the backup before uploading it to the ...
0
votes
1answer
52 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
94 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
105 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
80 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 ...
0
votes
2answers
393 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 ...
3
votes
0answers
85 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 ...
0
votes
1answer
68 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
147 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. ...
1
vote
2answers
904 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
81 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
96 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 ...
1
vote
1answer
2k 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
91 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: ...
0
votes
0answers
115 views

Django HttpResponseRedirect acting as proxy rather than 302

I have a Django method that's returning return HttpResponseRedirect("/redirect-target") When running the server locally, if I visit the page that returns that redirect, I get the log output ...
1
vote
2answers
3k 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
209 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 ...
1
vote
2answers
783 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 ...
0
votes
1answer
1k 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
598 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
132 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
0answers
53 views

PHP unable to load dynamic library php_curl.so

I am trying to run the zf.sh (Zend tool) script to create a new Zend project but I get this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_curl.iso' ...
0
votes
1answer
144 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 ...
0
votes
2answers
869 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
66 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
136 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
198 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
207 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
309 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
154 views

CURL SSL fails due to timeout in Ubuntu 12.04

I am developing an application, which uses CURL to establish connection to Facebook. 4 of 5 executions are fine, while 1 of 5 hangs. That what CURL trace says: == Info: About to connect() to ...
0
votes
0answers
223 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
188 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 ...