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
Hi, im using this library to make HTTP POST request(soap xml) to devices which supports Onvif standard. I have truble with some device, besause i can't authorize my request.
Usually it works like:
program sends empty request to server
server response 401 unauthorized with digest authorize data
program sends authorized request with xml data
server response 200 OK
When i try send request to another device, it looks like:
program sends empty request to server
server response 400 Bad Request without digest authorize data
I think the problem is that, first request does not contain data/xml and device does't want to answer to this empty request, so it answers "Bad Request".
Is it possible to send this first requst with data, to get response 401 unauthorized with digest authorize data?
The text was updated successfully, but these errors were encountered:
Yes, it would also be possible to copy the payload (body) of the request. We didn't do this because, in theory, the authorization pipelines take place before the content validation pipelines. So we never had to send the body information.
Feel free to open a PR with the adjustment and we'll be happy to integrate it into the next version.
Hi, im using this library to make HTTP POST request(soap xml) to devices which supports Onvif standard. I have truble with some device, besause i can't authorize my request.
Usually it works like:
When i try send request to another device, it looks like:
I think the problem is that, first request does not contain data/xml and device does't want to answer to this empty request, so it answers "Bad Request".
Is it possible to send this first requst with data, to get response 401 unauthorized with digest authorize data?
The text was updated successfully, but these errors were encountered: