Skip to content

WebQuery HTTP response code #23106

Answered by sfromis
makedir asked this question in Q&A
Mar 4, 2025 · 2 comments · 15 replies
Discussion options

You must be logged in to vote

Well, there are situations where you can get {"WebQuery":"Connect failed"}, that was a copy/paste from a test I did. And editing your question with significant change after getting a response is not a great way to communicate.

Still, you are right that you cannot get a reasonable indication of reachability this way. But what I saw as the main question was about getting a status code. This is not available using the WebQuery command. No way around that.

If you enable the mentioned USE_WEBSEND_RESPONSE, a workable approach is to check your server response to validate it to be consistent with what you expected.

When it comes to Berry, here's a simple example illustrating getting a 404 status…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
15 replies
@sfromis
Comment options

Answer selected by makedir
@makedir
Comment options

@makedir
Comment options

@sfromis
Comment options

@makedir
Comment options

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