ExecuteCredentials with digest authentication

ribber

Member
Licensed User
Longtime User
Hi @all,

I have a webservice on a server with digest authentication. To manage the connection I'm using the HttpClient object and the ExecuteCredentials method. The documentation says:

"...Digest authentication is only supported for GET requests..."

Is there a workaround to use webservices with digest authentication?



Thank you!
 

TheMightySwe

Active Member
Licensed User
Longtime User
Workaround POST xml

Do you need to do a POST request? Many web services do support GET requests.

I posted this under a other thread, but I found the answer. The service I try to post to requires this....

CleanCash manual said:
6.1.1.5 Content type
Content-type “text/xml” shall be used for xccsp messages.
6.2 Sending and receiving messages
An XCCSP request is POSTed using HTTP(S) on the selected port to URL “/xccsp”.
In return CleanCash® Server responds with a response.
6.3 Authentication
When authentication is enabled, communications is performed over HTTP(S) with
digest authentication including Quality Of Protection (“auth”) as described in
RFC2617.

It works when I try in a Google tool, but not in B4A, I get a 401 Error here. It's a bit frustrating.

So any solution to my problem would be appriciated.

Regards,
Jonas
 
Upvote 0

TheMightySwe

Active Member
Licensed User
Longtime User
No

Its a embedded server in a fiscal box, i'm trying to get them to accept GET messages in the server but that is hard.

So now I'm hoping that B4A can post credentials with POST instead.

Otherwise I need to make some small PHP-snippet on my BIG server to take the GET-data and just send it as POST to the embedded server in the box connected to it.

But that is my last resort, hoping this will be solved.

Tomorrow (Friday the 9th) I will get and answer from the manufactuer if there is a workaround from their side.

Regards,

Jonas
 
Upvote 0
Top