0.1.0 • Published 9 years ago

getpost v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

get or post the url by command line

Install:

npm install -g getpost

Use:

GET:

get [http://]www.example.com?query=xxxx
get www.example.com/example.jpg
getpost [g] [http://]www.example.com?query=xxxxx

POST:

post [http://]www.example.com[?query=xxxx] ['{"headers": {"User-Agent": "request"}, "form": {"name": "name"}}']
getpost p [http://]www.example.com[?query=xxxxx] ['{"headers": {"User-Agent": "request"}, "form": {"name": "name"}}']

Note:

  1. If the response Content-Type is not 'text/*' or '*/json', it will save the file at current directory.
  2. For pretty-printing JSON, please install json.
0.1.0

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago