Displaying 1 result from an estimated 1 matches for "set_auth".
Did you mean:
net_auth
2009 Oct 28
0
Basic Authentication within a POST-request using HTTPClient
Hey,
I want to call a service with HTTPpost behind a BasicAuth using
HTTPClient like this:
client = HTTPClient.new
body = { ... }
client.set_auth(domain, user, password)
client.post (domain, body)
Receive a 401!
If I try it with GET, it''s perfectly working, so I know the user/
password is correct.
It seems, using POST, the set_auth-method is not called.
Does anyone has an idea or solved this problem?
thx g