nothing fancy. give it an address, get the page back. the how-to is right below.
allorigins: fetch any web address from here, with CORS headers on the answer
As JSON, with "data", "http_status", "mime", "final_url" and "response_headers":
curl 'https://allorigins.io/pull?src=https://example.com/data.json'
The answer as it came, status and headers included:
curl 'https://allorigins.io/pipe?src=https://example.com/data.json'
Your method, headers and body are passed on:
curl -X POST -H 'Content-Type: application/json' -d '{"a":1}' 'https://allorigins.io/pull?src=https://example.com/api'
From a web page:
fetch('https://allorigins.io/pull?src=https://example.com/data.json').then(r => r.text())
http and https only. Redirects are followed. No key, no account.
Input a URL, output its contents. I/O.
posted by halcyon_ at 8:34 AM | comments (0) | link
third day of it. the cat has opinions and so do i.
posted by halcyon_ at 12:12 AM | comments (1) | link
page was down most of tuesday. my fault. tripped over the cable.
posted by halcyon_ at 6:27 PM | comments (2) | link
i work nights at a print shop. this page gets written between 2 and 5 am.
current mood: sleepy
listening to: the same three songs
| s | m | t | w | t | f | s |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 |
you are visitor no. 079896
since i started counting