february 26, 2005

a small useful thing

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://www.allorigins.io/pull?src=https://example.com/data.json'

The answer as it came, status and headers included:
    curl 'https://www.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://www.allorigins.io/pull?src=https://example.com/api'

From a web page:
    fetch('https://www.allorigins.io/pull?src=https://example.com/data.json').then(r => r.text())

http and https only. Redirects are followed. No key, no account.

Address:

Input a URL, output its contents. I/O.

posted by halcyon_ at 8:34 AM | comments (0) | link

february 23, 2005

rain

third day of it. the cat has opinions and so do i.

posted by halcyon_ at 12:12 AM | comments (1) | link

february 19, 2005

server hiccup

page was down most of tuesday. my fault. tripped over the cable.

posted by halcyon_ at 6:27 PM | comments (2) | link

about me

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

february 2005

smtwtfs
  12345
6789101112
13141516171819
20212223242526
2728     

archives

blogroll

elsewhere

counter

you are visitor no. 079901
since i started counting