cURL is an HTTP client library and command line tool.
Questions tagged [curl]
646 questions
0
votes
2 answers
Get current status from httptest (Zabbix)
I'm trying to use PHP/CURL to query Zabbix and find whether a service is available or not.
From Zabbix Web interface, I get this screen, which shows the test and its status.
Zabbix Web Interface
I'd like to get this data (test name and status) as…

Victor Ribeiro
- 161
- 1
- 6
0
votes
0 answers
Ubuntu connect to IP:PORT not working
From past 2 days, I'm struggling with a weird issue, found no answers related to my problem, earlier everything was working fine, but suddenly it stopped.
Issue exists only on my client system, from any other system everything works fine.
I'm trying…

Dr. DS
- 111
- 1
- 1
- 6
0
votes
1 answer
Curl can´t connect to implicit FTP over TLS on CentOS 7
I am trying to connect to an implicit FTP over TLS however it terminates with NSS error -5938 (PR_END_OF_FILE_ERROR). I am running latest Centos 7. I am able to connect with default curl in ubuntu distro but no succcess over centos 7
Here goes the…

Rafael
- 163
- 1
- 2
- 9
0
votes
1 answer
Openstack - Run a script after creating/deleting a VM
Is there a way to get Openstack to run a script right after it creates or deletes a VM(both Windows and Linux)? This script has to be run on the host itself, not on the VM or guest it just created.
The purpose of this is to add/remove the host from…

Debianuser
- 421
- 4
- 12
- 29
0
votes
3 answers
Apache Httpd PHP 7 Curl Setup
I have been trying to enable curl on PHP 7.1.4 which is running off of Apache HTTPD 2.4. The steps I have taken so far are:
Uncomment extension=php_curl.dll
Ensure that the ext path is set correctly (I have tested this by enabling openssl which…

user2502611
- 11
- 1
- 1
0
votes
1 answer
how to convert curl multiple line to one line
I have these curl commands
1.
curl -XPUT "http://192.168.1.1:8080/locate" -d'
{
"crap": {
"crazy": 1
},
"asap": {
"peg": {
"properties": {
"url": {
"type": "string",
…

uberrebu
- 503
- 6
- 17
- 36
0
votes
0 answers
Crontab curl response time to text file
I am trying to get the response time of a server so for example I am using below curl command I got of the internet
curl -w "@curl-format.txt" -o /dev/null -s http://wordpress.$
The curl-format.txt looks like the following:
n
…

DugD
- 1
0
votes
0 answers
Enable support for HTTP methods in an Apache HTTP Server
I am sending a PUT request using curl and getting a 405 Method Not Allowed status code. I commented out the directive in httpd.conf file but still seeing this error.
CURL request sending by me
curl -w…

metadata
- 121
- 5
0
votes
3 answers
CURL connection to domain name pointed at itself gives "Connection Refused"
I have a PHP website on CENTOS which needs to get the contents of its own homepage in order to cache it. To do this I need to use the full URL of it's own domain name that resolves to itself.
I tried doing a Curl -I website.com but the connection…

user2924019
- 99
- 1
- 12
0
votes
1 answer
Debian 8 - Problems with curl / php and with compiling from sources
I try to move an php application to a new server.
While on the old server a curl php call works correctly on the new server I get the error:
{"error":"Referrer Header Required"}
As both servers have different Debian, PHP and curl versions, I try…

Jaroslaw S.
- 13
- 3
0
votes
1 answer
PHP cURL HTTP2 support
I use Ubuntu 14.04.3 LTS on my server and run php5-fpm. I need to send a HTTP2 request via curl in php.
I used this tutorial to install curl/libcurl:
https://blog.cloudflare.com/tools-for-debugging-testing-and-using-http-2/
Somehow in terminal if I…

Tobias
- 128
- 3
0
votes
1 answer
error 404 in curl/file_get_contents/get_headers: “failed to open stream”
After isolating my problem, I am testing my API with the following code:
$url = 'http://example.com/api/myendpoint;
print_r(get_headers($url));die();
Sometimes it does works, but sometimes it returns a 404.
The link I access simply returns…

Matheus Oliveira
- 101
- 4
0
votes
1 answer
What are the possible causes of a curl protocol error?
I'm getting the following error with curl:
# curl -vvvv https://192.168.99.100:8501/ui
* Trying 192.168.99.100...
* Connected to 192.168.99.100 (192.168.99.100) port 8501 (#0)
* WARNING: using IP address, SNI is being disabled by the OS.
* Unknown…

Hawkeye
- 2,699
- 9
- 30
- 35
0
votes
1 answer
Weird 302 response from apache server
I have this situation that utterly baffles me:
The setup
a newly setup server (centos 7, apache, mysql, nothing fancy) that hosts a simple php app that I need to interact with from my main app on another server. This service is setup to run on…

Dan F.
- 101
- 4
0
votes
1 answer
Why do my two live servers not run this curl command, but my local test server does?
I have three servers. Two are live servers hosting web sites for the internet. One is a local testing server, not visible on the internet at larger.
I am trying to run a PHP script that posts to Twitter, and it relies on curl. When I run the script…

Questioner
- 127
- 1
- 8