Skip to content

Digest for POST with HttpURLConnection #21561

Answered by nightpool
sventiffe asked this question in Q&A
Discussion options

You must be logged in to vote

Mastodon requires all actors to implement the WebFinger protocol, including relay actors. I'm not sure if you edited that part out of your question intentionally, but the .well-known/webfinger route (or the host-meta route, optionally) is required.

I couldn't speak to the HTTP signatures issues you're having, but it sounds like maybe an issue with the body you're sending in your request. If the body of your request is empty, then obviously the digest value will have to be empty as well. Maybe that's a place to start your debugging? I would also suggest looking up examples for how to send POST bodies with the Java libraries you're using for other tips and tricks.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sventiffe
Comment options

@sventiffe
Comment options

Answer selected by sventiffe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants