|
Hola *|NOMBRE|*,
Convierte un GET en un POST.
Este es el único número del boletín. El servicio sigue funcionando.
Lo hicimos para los programas que solo saben pedir una página: escribes en un enlace la dirección y el cuerpo de la petición, abres el enlace, y nosotros la enviamos como POST (o PUT, PATCH o DELETE) y te devolvemos la respuesta del otro lado, tal cual.
Es gratis. No hace falta cuenta ni clave. Llega a cualquier dirección pública http o https y acepta cabeceras propias.
Cómo se usa
Las instrucciones van en inglés, tal como las leen los programas:
Gettopost Co: Convierte un GET en un POST
Put the address and the body in a link and fetch it. This POSTs
{"name":"test"} to https://example.com/api and gives you whatever
example.com answered, status code and headers included:
https://www.gettopost.co/send?target=https://example.com/api&data=%7B%22name%22%3A%22test%22%7D
With curl, which does the encoding for you:
curl -G https://www.gettopost.co/send --data-urlencode 'target=https://example.com/api' --data-urlencode 'data={"name":"test"}'
Something other than a POST, or with headers of your own:
https://www.gettopost.co/send?target=https://example.com/api/7&method=DELETE
https://www.gettopost.co/send?target=https://example.com/api/7&method=PUT&data=name%3Dnew&headers=%7B%22Authorization%22%3A%22Bearer%20abc%22%7D
headers is a JSON object, here {"Authorization":"Bearer abc"}. A body
that is JSON goes out as application/json, a=1&b=2 as a form, anything
else as text; content_type=... says otherwise. Add response=json to
get the answer wrapped in an object with "status", "headers" and
"body". http and https only. Redirects are followed. No key, no
account.
Pruébalo
Llena el formulario y pulsa el botón. Verás la respuesta en tu navegador.
Si el botón no funciona, copia este enlace en tu navegador: https://www.gettopost.co/send?target=https://example.com/api&data=%7B%22name%22%3A%22test%22%7D
Un saludo, El equipo de Gettopost Co
|