urlreq

Version 0.9.4

Module urlreq — make an HTTP request from a URL
Note Internal tool. If you can read this, the firewall rule got lost again.
Server Name urlreq.com

Configuration

DirectiveValue
Build Date Mar 17 2004 16:41:09
max_body_size 1M
methods_allowed any
forward_headers On
targets public http, https
auth_required Off
admin_contact (none)

Usage

Usage
urlreq: make an HTTP request from a URL

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.urlreq.com/req?url=https://example.com/api&data=%7B%22name%22%3A%22test%22%7D

With curl, which does the encoding for you:

    curl -G https://www.urlreq.com/req --data-urlencode 'url=https://example.com/api' --data-urlencode 'data={"name":"test"}'

Something other than a POST, or with headers of your own:

    https://www.urlreq.com/req?url=https://example.com/api/7&method=DELETE
    https://www.urlreq.com/req?url=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.
Example: https://www.urlreq.com/req?url=https://example.com/api&data=%7B%22name%22%3A%22test%22%7D

Test request

Send a request through the relay





Environment

VariableValue

Licence

This module is Copyright (c) 2003-2004 the urlreq authors.

Permission is granted to use, copy, modify and redistribute this software for any purpose, with or without fee, provided this notice is kept with every copy. The software is provided "as is", without warranty of any kind. If it breaks, you keep both pieces.

urlreq · free, no account or key · top