cURL is an HTTP client library and command line tool.
Questions tagged [curl]
646 questions
3
votes
3 answers
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 looks like when I try to connect:
$ curl…

Jim D
- 501
- 1
- 5
- 12
3
votes
1 answer
Why does curl give a different response for $_SERVER['REQUESTI_URI'] than browsers?
I have a simple test PHP page:
';
echo $_SERVER['REQUEST_URI'];
?>
When I access this page with a browser (I've tested chrome, and links) it gives me the output I'm expecting:
10.1.25.222
/test.php
But…

grimetime
- 143
- 6
3
votes
1 answer
SSL with authentication without encryption
Is it possible to setup lighttpd server and curl client so that both the client and the server verify each other's self-signed SSL certificate but the file is downloaded without SSL encryption?
How can I setup this?

jackhab
- 771
- 1
- 8
- 21
3
votes
4 answers
Download a file from the shell when button click is required
I have a link to a file that I would like to download from the shell. Unfortunately, the URL redirects to a software license agreement page which requires clicking an accept button. This is fine when I'm in a standard browser but when I'm in the…

Brett
- 165
- 1
- 10
3
votes
2 answers
Upgrade curl to latest on CentOS 6.3
Thought this would be a simple process, but I guess not. I need the latest version of CURL (7.23 or newer) on CentOS 6.3.
If I do this:
sudo yum upgrade curl
It just tells me there is nothing to do (everything is up to date).
So I followed some…

Keith Palmer Jr.
- 1,173
- 4
- 16
- 29
3
votes
2 answers
Brew install imagemagick curl fails
I am getting the following error when trying to install imagemagick via brew on OS X Mountain Lion. It appears to be a curl error - hence why it's on SF not another of the Stack Exchange sites.
brew install imagemagick
==> Installing imagemagick…

dannymcc
- 2,717
- 10
- 48
- 72
3
votes
2 answers
git refuses to send credentials over HTTP
curl seems to work fine, but git does not. git asks for a password, but then doesn't send any credentials.
Works: curl --netrc http://test.git.unsw.edu.au/ and curl -u username:password http://test.git.unsw.edu.au/
Doesn't work: git remote…

Jayen
- 1,857
- 4
- 16
- 28
3
votes
1 answer
how to monitor cURL calls
I have a PHP based CMS which makes requests to service provider (a java based ECM(enterprise content management) currently located in the same server as my PHP) and inserts the response to mysql.
What initially starts at a good rate degrades slowly…

optimusprime619
- 133
- 1
- 5
3
votes
2 answers
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 the HTTP specifications, so the overall curl call…

jrdioko
- 567
- 5
- 9
- 18
3
votes
2 answers
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 http://www.edgeoftheweb.co.uk
* About to connect() to…

Jon
- 161
- 2
- 3
- 11
3
votes
1 answer
How do I test HTTP Pipelinning?
I am trying to test if site/server/whatever has ability to pipeline HTTP request.
So far, I think it is possible to send several request through one curl session, like:
curl http://www.example.com/1.html http://www.example.com/main.css…

Ency
- 1,231
- 1
- 19
- 27
3
votes
1 answer
How to install PHP from source with latest cURL package on Linux?
I simply have to use the latest cURL version (7.21.3) with PHP on my webserver. (Has to do with specific bug fixes)
It is not available by default on most current Linux variant repositories. (Natty Narwhal by Ubuntu is the only one and it's still in…

darkAsPitch
- 1,931
- 4
- 25
- 42
3
votes
3 answers
How to fix Apache from crashing with PHP+Curl on an SSL request?
My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL.
If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl options are correct.
I can use curl from the…

Jason Cohen
- 1,127
- 3
- 14
- 21
3
votes
1 answer
How to enable curl, installed Ubuntu LAMP stack?
I have installed ubuntu Lamp stack.But the curl is not enabled neither i can find extension listed in the INI file, i added manually but it didn't worked too.
How should enable Curl then ?

user44520
- 205
- 1
- 5
- 8
3
votes
1 answer
How to install PHP cURL on IIS?
How do I go about installing PHP cURL on IIS? I have copied the php_curl.dll file into the PHP extensions folder, what else do I need to do?
Thanks

Probocop
- 279
- 2
- 5
- 13