cURL is a CLI tool for issuing HTTP GET, POST, & PUT request.
2
votes
2answers
213 views
Using “&&” is not effective for cURL submit form (don't execute second line if first line fails)
I'm submitting to my website using cURL. I make cURL post it in timely fashion.
In below code; first line is curl submit; second line is for queuing:
curl -b cookies.txt \
-d title="$(sed ...
1
vote
1answer
275 views
Why does curl fail while using this export?
I'm doing some stuff with Facebooks FQL at the moment, and I'm using curl on the command line to test some of the responses of it. I'm also using export to keep the params seperated for easy editing. ...
2
votes
1answer
249 views
Asking curl to skip missing files
Is there any way to tell curl not to download a file when it does not exist on the server?
I am using my Mac OS X shell to download a few files with curl.
The command goes:
curl -s -# ...
1
vote
1answer
480 views
rtorrent: Can't connect to trackers on CentOS 5.6
I'm trying to set up rtorrent on my CentOS 5.6 server, and it currently cannot connect to any trackers.
I compiled libtorrent-0.12.6 and rtorrent-0.8.6. I also compiled libcurl 7.21.7 with c-ares ...
1
vote
3answers
2k views
Upgrading curl in Centos 5.6
There is any easy way to upgrade the default curl 7.15 to the 7.20 or 7.21 version? Any repository to install into YUM.
Edit: I found this repository with the last version
...
1
vote
1answer
1k views
How can I specify that curl (via command line) overwrites a file if it already exists?
I'm using curl in this syntax:
curl -o myfile.jpg http://mysite.com/myfile.jpg
If I run this command twice, I get two files:
myfile.jpg
myfile-1.jpg
How can I tell CURL that I want it to ...
2
votes
1answer
844 views
Install php_http on Arch Linux
First I installed the curl extension for PHP:
$ sudo pacman -S php-curl
and
$ grep curl /etc/php/php.ini
extension=curl.so
Then I installed the PHP PEAR
$ sudo pacman -S php-pear
Having now ...
2
votes
2answers
352 views
Submit “&” to Drupal 6 form using cURL?
I'm using this code to create a node in Drupal 6:
curl -b cookies.txt -d \
title="$(sed '1,/sblmtitle/d;/slpstitle/,$d' file.html)" \
-d form_build_id=form-5312da71abefb3bf1f63f1f2b7cf9105 \
...
1
vote
1answer
321 views
Command-line cURL submit form from other files
In this command:
curl -d param1=value1 -d param2=value2 http://example.com/submit
If value1 is located in file1.txt, how can I make cURL include file1.txt in the command?
1
vote
1answer
351 views
submitting form with cURL sometimes works, sometimes doesn't
I use this command to fill out a form in Drupal 6 (create node):
curl -b cookies.txt -d ...
2
votes
3answers
199 views
Source (.) piped curl output
I have a file, f, on my webserver with the following contents:
alias ll='ls -l'
I would like to (from another linux box) do the following, but I can't get the command right:
curl http://myserver/f ...
0
votes
1answer
494 views
Curl and grep html text
Is there a way to grep html text from a curl request and output grab the value that is between two html tags?
More specifically the input value of a form?
1
vote
1answer
381 views
Test FTP Username and Password
I'm working on a program that involves uploading some files via FTP. However, I'd like to abort the process if the username and password given by the user are incorrect.
Is there any way to "test" if ...
2
votes
2answers
113 views
Is there a OS/user-wide log to log to?
I'm using curl to dowload a jar from a TESTDRIVE script and for debugging purposes it helps to log the http headers returned to a log file. But logging them in the working dir (where the script is ...
3
votes
2answers
3k views
loop curl get request bash
I'm trying to automate a curl script and eventually make it loop also. I found that I can't use any loop like:
for i in `cat authors`
do
curl *line here* ...
6
votes
2answers
215 views
Are there any good tools besides SeleniumRC that can fetch webpages including content post-painted by JavaScript?
One major shortcoming of curl is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl never picks ...
4
votes
3answers
649 views
Does anybody here have experience in automating some tasks in web applications using curl?
I have some "corporative" systems I have to use at work. Some of them are terrible, with frames, pop-ups and such.
I was thinking about automating some stuff using curl or something like that. I need ...
2
votes
2answers
626 views
Puzzle: transfering files between two servers (ssh, ftp, http multipart…)
A puzzle: files being uploaded in realtime by SCP to SERVER1 need to be transfered to SERVER2.
But:
SERVER1 doesn't actually have network access to SERVER2 (NAT), however SERVER2 has SSH access to ...