You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a strange issue where a curl REST request works very well and not when using httpie
CURL - http 200
curl -v -i http://admin:admin@localhost:8181/hawtio/jolokia/list
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8181 (#0)
* Server auth using Basic with user 'admin'
> GET /hawtio/jolokia/list HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.37.1
> Host: localhost:8181
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
Problem is related to a workaround added by the Fuse project supporting hawtio-web/jolokia. With curl the user agent is not authenticated against jaas realm of karaf with a cookie session but basic authentication is used. As this is not the case for httpie, this is why we get a 403 error
I have a strange issue where a curl REST request works very well and not when using httpie
The text was updated successfully, but these errors were encountered: