A simple redirect service to convert GET requests to POST requests.
get2post is an online utility that takes a URL with query parameters (normally used in GET requests) and redirects it to a POST request.
The main use case is using Chrome's site search functionality for websites that only support POST requests.
Simply append your target URL after the hash (#) symbol of the URL https://joliss.github.io/get2post/redirect#, with any POST parameters included as GET parameters. For example:
This will result in a POST request to https://httpbin.org/post, with the foo and bar parameters turned into POST data.
Tip: An easy way to obtain GET URLs for any form is by clicking "Inspect" on any form element and changing the form's method attribute to "get" in the web inspector:
Or run this in the developer tools console to change all forms to GET:
document.querySelectorAll('form[method]').forEach(f=>f.method='get')
get2post doesn't collect any data. Your requests and parameters are kept private because:
This tool was made by Jo Liss and is licensed under the Apache 2.0 License.
If you are using this tool for your own service, I encourage you to host the redirect.html file on your own server for improved security.
You can clone the Git repository at https://github.com/joliss/get2post.