I just installed CentOs 6.3 on a server to be installed in a data center, but cannot get name resolution / curl to work.
I know this is because of it trying to use ipv6, since ping google.com works, curl -4 google.com works, but not curl google.com.
I removed the ipv6 adress from the interface and it does not change anything.
This is very problematic since most system tools like yum fail at nam
I have a script which uses cli curl to download the source code of a webpage and then tests if a specific string exists in the source.
The problem is that the website has a slow response, so the eval expression hasn't completed when the test starts.
The test returns a negative, and the curl completes right after the test and changes the source.html.
I've noticed my web server takes a long time to load pages recently. Using Firebug, I realised it takes around 4s for the DNS lookup:
Connecting: 304ms
Sending: 0ms
Waiting: 3.45s
Receiving: 0ms
I thought that was a long time to wait for a HTTP response.
I'm mounting several drives in a script. Each one is sometimes unavailable, because the PC it's on is turned off, for instance. However, mount_smbfs takes a long time to fail (around 75 seconds), even with the "-o soft" option. Is there a way to speed this up?
Thinking about it, I guess a workaround would be to first ping the machine, and only attempt the mount if that succeeds.
I have installed curl:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
and I have updated my php.ini file to include(I also tried .so):
extension=php_curl.dll
To test if curl is working I created a file called testCurl.php which contains the following:
<?php
echo ‘<pre>’;
var_dump(curl_version());
echo ‘</pre>’;
?>
When I navigate to localhost/testCurl.php I ge
Hi All,
I am using curl command to issue a request to server(web.py). Till Now I was not facing any problem. But when the server takes lot of time to respond, Curl exits with "curl: (52) Empty reply from server" error.
I have not used cUrl before, but I have noticed that in my Perl script I give a query and it takes the format:
URL?query={field[value];field['value']}
But, when I try this with cUrl, it will not query at all:
curl: (3) [globbing] nested braces not supported at pos 88
I have tried moving the braces etc etc, it just does not seem to take the same format
So, the Perl works and it pulls back XML
Hi,
I have a problem with curl when I upload images using a script via ftp and curl.
The error I get is this:
Failed starting the upload. For FTP, the server typically denied the STOR command. The error buffer usually contains the server's explanation for this. (This error code was formerly known as CURLE_FTP_COULDNT_STOR_FILE.)
curl -s $site | grep patern | awk -F "_" '{print $1}' >> $filegrep returns more than one line. So the above line works despite the lack of an array.awk takes them one by one like a good program and writes each to a file. All is well.