-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HTTP] Feature Request - Off Cycle Refresh & Agent String #9265
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/change-user-agent-in-http-binding/121142/7 |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/sendhttpgetrequest-does-not-respect-user-agent-in-header/144838/2 |
I recently experienced that when setting the user-agent in a HTTP header, Jetty will use two user-agents (the one set and its own), which is considered an error by some web servers. For example, energidataservice.dk failed. The fix was to set it using the agent method: https:/openhab/openhab-addons/pull/14376/files#diff-a299a861229ecc8972ed87af778fbfe04ad31a424ec3f294ef7bdc91682ea335R116 However, after this change and inspecting my web server logs in my emulated environment, I saw the same thing happening after a redirect, i.e.:
redirect to: |
@jlaur could you help test this https://community.openhab.org/t/sendhttpgetrequest-does-not-respect-user-agent-in-header/144838/3 I haven't tested whether it affects/fixes the http binding. I did test it on the HTTP action HTTP.sendHttpGetRequest. The easiest way to check is by making a request to https://httpbin.org/headers - it will return the request headers in its HTTP response body - with an extra field |
@jimtng - what do you specifically need tested? I'm not currently using the HTTP binding, so I'm not sure if you tagged me by mistake? |
oops sorry, yes it was a mistake. |
This can be done by sending a
Added in #14518 |
Fixed by: #16282 |
Requesting two features be added to the HTTP binding:
rule "TV Power Change"
when
Item TVPower received command
then
val httpActions = getActions("http","http:url:mytv")
httpActions.forceRefresh()
end
The text was updated successfully, but these errors were encountered: