Replies: 5 comments 1 reply
-
I will have a look. But keep in mind that we are using Arduino Core for the web server part, so we rely on it for these features. I'm not sure the absolute form is required if you already provide the Host header |
Beta Was this translation helpful? Give feedback.
-
@arlyon what is your use case? As per the standard this is actually mandatory for proxies, and although the standard says that servers are required to support absolute URI, I can't seem to find a case where this would be really needed from a device. Supporting absolute URI is a security risk if the URI points outside of the device itself. Which means that additional checks should be performed to be sure that the URI points to the device itself. |
Beta Was this translation helpful? Give feedback.
-
RFC 7230 gives this explanation:
Thus, the value of this detail is "pretty limited". Accessing via a proxy would not be a use case. OTOH, if Tasmota had a proxy server as a feature..... |
Beta Was this translation helpful? Give feedback.
-
I checked the Arduino code and I confirm it does not support absolute URL. Any fix must be done there. Although it would not be too hard to just ignore the prefix if it's present, I think it will be hard to convince them because there is no obvious use case |
Beta Was this translation helpful? Give feedback.
-
Thanks for the replies here, seems like your assessment of it being an arduino thing is correct. I have also written a fix for the http client I am using to avoid this case and I assume that given the server doesn't support it, it is probably one of the many 'technically out of spec but also very uncommon' use-cases. I will close this, since we have this issue now for SEO reasons for later users. Thanks! |
Beta Was this translation helpful? Give feedback.
-
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
I am using tasmota 13.3.0. When attempting to issue http requests to the API, it appears the server does not support the absolute form of the request target, returning a 404.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
EXPECTED BEHAVIOUR
I'd expect it to handle those properly
https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages
SCREENSHOTS
N/A
ADDITIONAL CONTEXT
N/A
(Please, remember to close the issue when the problem has been addressed)
Beta Was this translation helpful? Give feedback.
All reactions