I want to access an url which requires the full authentication. The following is my code.
import restclient
res = restclient.GET("x.x.x.x:8181/abc/def", headers = {'username':'admin','password':'admin'})
print res
400 Bad Request
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Hint: https://unassigned-hostname:8181/
Please tell me how to do the full authenticated request using restclient module of python ?.