cURL is an HTTP client library and command line tool.
Questions tagged [curl]
646 questions
0
votes
0 answers
php curl does not execute url
Im writing a php cron script that needs to run a url
After some database modifications the php script needs to execute an url
$url = 'http://server.domain.com/cronjob.php?idorder='.$orderid.'&idcustomer='.$idklant;
$fp =…

Erestor Elensar
- 1
- 1
0
votes
1 answer
Curl version on command line is different to PHP
I've got PHP version 5.5.21-1+deb.sury.org~precise+2 running with Apache2 under Ubuntu 12.04
When I run phpinfo() it shows the curl version as 7.22.0
When I run curl --version via the command line - it shows the version as 7.34.0
How do I get PHP to…

Laurence
- 123
- 1
- 7
0
votes
1 answer
Enable curl_exec() in a sub-folder
Curl is enabled on the server but curl_exec function is disabled for security reasons.
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,
curl_exec,curl_multi_exec,parse_ini_file,show_source
I know that I can enable this function…

vv_vv
- 105
- 4
0
votes
1 answer
Enabling TLS1.0? Cannot communicate securely with peer: no connection encryption algorithms
For over a year I have been running a photo based website that allows customers to order prints, which are subsequently fulfilled by a printing company. Orders are posted in XML format to a designated URL. Recently orders are not being posted and…

panoramic
- 21
- 1
- 7
0
votes
1 answer
Ubuntu SSL connection with TLS connection error
I am using Ubuntu 12.04, installed at VirtualBox (Mac) using vagrant. I am not using any proxy server.
In my company network, when I try
curl -1vsS https://github.com/FGRibreau/doxx/archive/master.zip
I get the following results:
* About to…

forestclown
- 945
- 4
- 15
- 25
0
votes
2 answers
Curl to self using fully qualified address
I'm running a Virtual Private Server to host some websites. I have a PHP script that tries to fetch resources from the server, essentially using a curl command to the server (http://example.com/files/resource.txt) which fails. I've tried simulating…

Tim Lewis
- 1
- 4
0
votes
2 answers
CURL isn't running from Crontab
Here is the output. Not sure if cron isn't running or other issue. If I issue curl --silent http://..../scanner.php from terminal, I'm getting desired output. Actually scanner.php do some check and send an email. I've getting that. But not working…

IFightCode
- 111
- 2
- 9
0
votes
2 answers
SSL Client Certificates and NginX
I followed the instructions in this blog post, but when I test it with curl, nginx's $ssl_client_verify variable is always NONE. In fact, curl doesn't even give different output when I don't specify the --cert and --key options at all. It's as if…

Nick Retallack
- 151
- 2
- 8
0
votes
1 answer
Where cURL store files in web server?
I have a centOS machine using a nginx web server. In my application (php) I use cURL to get a remote file and then send it to the view:
$cache_expire = 60*60*24*365;
header("Pragma: public");
header("Cache-Control: maxage=".…

DomingoSL
- 365
- 1
- 4
- 13
0
votes
1 answer
How to secure private communication among Apache servers with SSL (sign IP only)
I have 2 Apache servers (with PHP):
public server A which hosts web pages, it has domain name etc.
public server B which hosts some services (built as PHP application) and those services are used only by server A (e.g. A in its PHP application uses…

TomR
- 111
- 1
- 1
- 6
0
votes
1 answer
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:
$ curl…

jaymz
- 29
- 3
0
votes
2 answers
Is there a way to direct a HTTP server to upload file to the other HTTP server?
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 server1 to do http upload files to server2 like the…

TieDad
- 274
- 5
- 13
0
votes
1 answer
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 php file I always obtain "504 gateway time out"

davide
- 1
- 2
0
votes
3 answers
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 really tell me how it performs at certain rates…

bernie2436
- 581
- 2
- 6
- 9
0
votes
1 answer
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, I embed a link to the user's image.
I'm worried…

DatsunBing
- 459
- 4
- 8
- 17