cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

0
votes
1answer
251 views

curl scrables accented characters

I'd like to transfered a url with curl, but the accented characters are scrambled. This is what I get: Bulletin cÙtier pour la bande des 20 milles de Port Camargue ‡ Saint<br> Raphael le mardi ...
2
votes
1answer
6k views

Curl POST - 411 Length Required

We have a RestFUL API we build in PHP. If we make the request: curl -u api-key:api-passphrase https://api.domain.com/v1/product -X POST We get back: 411 - Length Required Though if we simply add ...
0
votes
4answers
3k views

Install PHP 5.1.2, Requires: libcurl.so.3()(64bit) error

I'm trying to install php 5.1.2 on a CentOS 6 server (for grandfathering in old websites). I downloaded an RPM file ( php-5.1.2-5.x86_64.rpm ), but when I use: yum install php-5.1.2-5.x86_64.rpm I ...
5
votes
2answers
5k views

How do I pipe the output of uptime/df to curl?

I want to send the output of uptime and df commands to a web app using cURL. I tried: uptime | curl http://someurl.com -T - But that didn't seem to send the data. What is the proper way to send ...
3
votes
2answers
853 views

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 ...
4
votes
1answer
6k views

How to log outgoing http requests from PHP + cURL?

I have a PHP script set up that makes cURL requests whenever an action is performed on a site. The problem is that the information is being POSTed twice whenever the action is run. I need to work ...
1
vote
1answer
229 views

How to send a local file and expect other file?

I'm trying to make a simple web call work in command line mode and what I would like to do is: send a document file to http://domain.com/convert/ receive as the response a PDF file I can see that ...
1
vote
2answers
584 views

Curl - download file range

I'm trying to download a range of files using curl. curl -R -O -z /dir/file1.png http://somesite.com/file[1-100].png The problem I'm having is how to make the "file1.png" change to the approperate ...
0
votes
2answers
780 views

Why cant Perl find my Curl library?

I created a new module using h2xs which built a module tree for me and a bunch of files. Git as far as running make test but then make failed saying it couldnt find WWW::Curl, but I had installed ...
1
vote
2answers
275 views

Installing cURL 7.19 on ubuntu

I am transferring from a server with Ubuntu on to one with CentOS and I am encountering a problem regarding cURL. Our current site runs cURL 7.19 but Centos yum only finds 7.15. I get an error with ...
0
votes
1answer
294 views

Curl doesn't work in crontab

I'm new to set up server settings and to the whole unix thing so maybe this is simple. I'm trying to start crontab with curl in but it doesn't work. I want it go to file and send email every 30 ...
1
vote
2answers
19k views

How do I use curl in a cron job?

I need to set up a cron job in cpanel that calls a URL (on the same server) once a week. I was going to use wget but it turns out this is disabled on the shared server being used. Is there an ...
1
vote
1answer
3k views

Nagios + check_http with header data

With cURL, I can successfully log into the website I want have Nagios test by passing --cookies. Something like this: curl --cookie "user=4reqrerqwr;userlogin=123adsfjlk324" ...
2
votes
1answer
100 views

Editing hosts file of my Mediatemple DV container

I have a PHP script in a Mediatemple (dv) server that uses cURL to post data to a remote website. This remote website also resides in a (dv) server and doesn't have a domain name yet. I can only ...
0
votes
3answers
126 views

How to intentionally degrade an outbound connection in linux

I am testing the timeout handling for an outbound CURL in a PHP app I am developing after an outage at an affiliate brought down my site. I am looking for a way to intentionally slowdown or ...
0
votes
3answers
2k views

download only new files from ftp using WGET/cUrl

i have Windows 2008 Server on which i store DB backups on daily basis. I want to be able to download new files only using wget, curl or windows built-in FTP doesn't matter. Can you help me with ...
1
vote
1answer
306 views

FreeBSD Dump with cURL/rsync

I'm trying to create a backup script using FreeBSD's dump to take a snapshot of a filesystem, but instead of storing the snapshot on disk I want to pipe the output from dump into cURL or rsync so its ...
1
vote
1answer
685 views

How can I use curl to upload and post a file with the following form?

The form html from the page I'm trying to upload to is as follows: <form action="upload_handler" method="POST" enctype="multipart/form-data"> <input type="file" name="myfile"> ...
5
votes
1answer
4k views

Trying to install pecl Solr extension but it needs curl

When I try to install solr-beta: pecl install solr-beta I get this error: pecl/solr requires PHP extension "curl" No valid packages found install failed The thing is curl is already installed and ...
1
vote
0answers
96 views

What is PHP cURL and libcurl version relationship?

I'm running php with curl support on a mac. cURL in php works fine(ish) but I noticed an oddity reported by phpinfo(). It states that curl support is 7.19.7 But using the otool command, I get this: ...
0
votes
1answer
144 views

Services Similar to Cronless?

Are there any other well known cron alternative services to manage large amounts of automated tasks, such as curl'ng a url at a certain frequency? The only one I have found is cronless.com
2
votes
1answer
2k views

How do I enable ciphers for NSS?

I am trying to use curl built with NSS (not built with OpenSSL) on Fedora 14 to connect to a webpage over https. The server to which I am connecting (example.com) uses the RC4-SHA cipher for its SSL. ...
0
votes
1answer
315 views

Run crontab to click a website link every hour

I would like to click on a test like this (the "start testing" button) every hour so I can get a hourly result (results are saved on the server side). Basically what happens is that I connect with a ...
0
votes
1answer
2k views

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 ...
1
vote
2answers
625 views

how to prvent specific pages from being cached in squid?

I have drupal based website and i am using squid as a caching level. now, the homepage keeps getting un-updated content (old contents) and by running curl -I on my website i got this: HTTP/1.0 200 ...
3
votes
5answers
3k views

Multithreaded downloading with shell script

Let's say I have a file with lots of URLs and I want to download them in parallel using arbitrary number of processes. How can I do it with bash?
1
vote
1answer
1k views

nginx loggin $request_body produces weird encoding

I have an nginx server that logs POST $request_body to a file. When I post json to the server, it replaces quotes (") with \x22. My config looks like this server { server_name myServer; ...
2
votes
2answers
8k views

Alternatives to CURL, WGET

Is anyone aware of any alternatives to curl and wget? The key functional requirement I'm looking for is to be able to execute an HTTPS GET request against a known URL. The reason I'm looking for an ...
2
votes
2answers
2k views

WGet or cURL: Mirror Site from http://site.com And No Internal Access

I have tried wget -m wget -r and a whole bunch of variations. I am getting some of the images on http://site.com, one of the scripts, and none of the CSS, even with the fscking -p parameter. The ...
0
votes
4answers
2k views

How to enable PHP Curl on linux machine using FTP only

I only have access only to php.ini file and I want to be able to add curl extenssion to my linux machine. I don't have access to terminal. I tried adding: extension=curl.so but it doesn't ...
2
votes
1answer
3k views

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 ...
0
votes
2answers
377 views

Errors installing the Curl library with PHP/Apache/Windows

I'm having a hell of a time getting Curl to work with PHP/Apache on my Windows XP 64-bit development box. I have PHP and Apache successfully installed, but when I tried to enable Curl I get the ...
-1
votes
1answer
194 views

Apache strange behaviour:“get” works, but “post” doesn't

Ok. I have a script that was supposed to post data to another web page. I use curl and I can request a page with "get" but not with "post". I wrote a python script that works from CLI. When I try to ...
0
votes
1answer
838 views

php curl extension problem, ubuntu

i've installed (as root) aptitude install curl php5-curl libcurl3 libcurl3-dev and added extension=curl.so to my php.ini (i assumed this wasn't done automatically because i'm using Lighty and not ...
0
votes
1answer
4k views

How do i enable curl support for php 5.3.3?

Hi I have installed curl and curl-devel, but i still can't get curl to work with php. My php config line: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gd' '--with-mysql' ...
0
votes
2answers
1k views

Apache curl via HTTP proxy

I am trying to get PHP to execute a curl connection to another server. To connect to the server, we need to go via a proxy. Within bash, we have set the env-variable http_proxy and this works ...
0
votes
2answers
154 views

One long php process hogging the system, producing average spikes > 8

I recently moved my site from a VPS to a dedicated server. The VPS was around the same speed/spec with the dedicated one. It's usual load average was around .7-.9 (it was a supposed 3 core system). ...
1
vote
4answers
850 views

Bootable tool to image hard disk over network

I'm looking for a tool, preferably a minimal Linux build, which can, or fairly simply be modified to, boot as an ISO image and automatically download a disk image over a network and apply it to a ...
9
votes
4answers
31k views

How do I make cURL use keepalive from the command line?

I'm trying to verify that HTTP persistent connections are being used during communication with a Tomcat webserver I've got running. Currently, I can retrieve a resource on my server from a browser ...
2
votes
2answers
1k views

Retrieve FTP directory tree from the command line

What would be the fastest way to recursively retrieve entire directory listing from an ftp server using wget/curl/whatever? I don't need to download any files, just directory and file names. Basically ...
3
votes
5answers
6k views

Curl development headers with SSL support for Phusion Passenger 3

I'm trying to install phusion passenger nginx module, but it fails # passenger-install-nginx-module * Curl development headers with SSL support... not found ... yum install curl-devel Setting up ...
0
votes
6answers
916 views

is there a problem in disabling curl and wget?

Is it recommended to disable curl and wget to disallow anyone from accessing my websites using those commands? Or is it needed for some search engines to access my websites? What are your ...
1
vote
1answer
361 views

www-data user doesn't seem to have the access to use php-curl

I'm trying to get the simpletest module for drupal to work, which relies on php-curl to fetch its requests. When I as the user root do the following it works fine: root@server:~# php -a Interactive ...
0
votes
3answers
627 views

What Happens When Apache Times Out?

I am a PHP developer and I just spent a good amount of time trying to track down a very strange problem the users of our web application were reporting. It turns out due to a slow API call over the ...
0
votes
2answers
2k views

Apache 2.2 + PHP 5.3.2 + cURL not working

When I try to start the Apache server (with PHP and cURL extension), it says: The Apache2.2 service is restarting. Starting the Apache2.2 service The Apache2.2 service is running. rmine the server's ...
2
votes
2answers
1k views

WHM: how to add curl extension to PHP?

i need curl installed on php. how can i add it using WHM? and does it have any security issue or may couse problem for accounts on the shared host?
0
votes
1answer
100 views

Use all 255 server IP Addresses

I am running an Ubuntu server having 255 IP addresses. I want to write down a PHP script that uses each IP to do a curl request. Is this possible ?
0
votes
2answers
1k views

How to fix Apache from crashing with PHP+Curl on an SSH 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 ...
1
vote
0answers
259 views

How to use sitemap.xml to create a static mirror of a CMS

Is there a tool to create a static mirror of a content management system (CMS) that provides a sitemap.xml file? Ideally, I would point a tool like wget or curl to a sitemap.xml file and have it ...
0
votes
1answer
673 views

PHP on IIS6, Windows Server 2003. Enabling cURL causes CGI Error

I'm running an IIS6 server on Windows Server 2003 R2 SP2. I've installed PHP on the server, and MOST of it is working fine. However, if I try to enable the cURL extension for PHP, I get the following ...