Skip to content

A small utility that converts form and input HTML tags into GET or POST requests.

License

Notifications You must be signed in to change notification settings

nathanruiz/form2post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

form2post

form2post was created to automate scraping web pages for HTML form and input tags in order to get the URL that can be used to submit it. This makes jobs such as logging into a web site with curl much easier, as you don't even need to use an XML/HTML parser.

I've attempted to follow the UNIX philosophy of writing small utilities that only do one, unambiguous task. Therefore, this tool doesn't connect over the network to a web server, but instead takes a web page from STDIN, and writes the resulting GET/POST request to STDOUT.

Examples

$ curl http://example.com/ | form2post

$ wget http://example.com/ -O - | form2post

$ cat index.html | form2post

About

A small utility that converts form and input HTML tags into GET or POST requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published