willnorris / webmention

Go library and CLI for assisting in sending webmentions.
https://pkg.go.dev/willnorris.com/go/webmention
BSD 3-Clause "New" or "Revised" License
50 stars 5 forks source link

try HEAD before GET for endpoint discovery #5

Closed willnorris closed 3 years ago

willnorris commented 10 years ago

when discovering the webmention endpoint for a URL, we should do a HEAD request first and check for a Link header. If that fails, then do a GET request and do a full check of the body as well.