Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahamas10/node-pcurl
Concurrently curl a list of hosts and print the results
https://github.com/bahamas10/node-pcurl
Last synced: about 2 months ago
JSON representation
Concurrently curl a list of hosts and print the results
- Host: GitHub
- URL: https://github.com/bahamas10/node-pcurl
- Owner: bahamas10
- Created: 2012-10-10T04:48:09.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-24T22:39:11.000Z (over 10 years ago)
- Last Synced: 2024-10-11T00:05:16.379Z (2 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pcurl
=====Concurrently curl a list of hosts and print the results
![Pcurl](http://www.daveeddy.com/static/media/github/pcurl.png)
Usage
-----Used as a command line tool
pcurl url1 url2 url3 ...
or pipe through stdin
pcurl < newline_sep_list_of_urls.txt
Examples
--------Use bash expansion to hit multiple URLs at the same time, and report the results
$ pcurl http://ifconfig.me/{ip,host,ua,port,lang,connection}
URL CODE BODY
http://ifconfig.me/connection 200 keep-alive
http://ifconfig.me/host 200 host.isp.net
http://ifconfig.me/ip 200 2.6.9.8
http://ifconfig.me/lang 404
http://ifconfig.me/port 200 41699
http://ifconfig.me/ua 200Or send the same data through stdin
$ printf "%s\n" http://ifconfig.me/{ip,host,ua,port,lang,connection}
http://ifconfig.me/ip
http://ifconfig.me/host
http://ifconfig.me/ua
http://ifconfig.me/port
http://ifconfig.me/lang
http://ifconfig.me/connection
$ printf "%s\n" http://ifconfig.me/{ip,host,ua,port,lang,connection} | pcurl
URL CODE BODY
http://ifconfig.me/connection 200 keep-alive
http://ifconfig.me/host 200 host.isp.net
http://ifconfig.me/ip 200 2.6.9.8
http://ifconfig.me/lang 404
http://ifconfig.me/port 200 41699
http://ifconfig.me/ua 200Limitations
-----------* Only supports GET requests
* Meant to receive small body data
* Hardcoded 10 second timeoutInstall
-------npm install -g pcurl
License
-------MIT