Campoie / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add support for preemptive basic auth #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Groovy impl:

def http = new HTTPBuilder('http://myhost.com') 
http.headers[ 'Authorization' ] = 
"$user:$pass".getBytes('iso-8859-1').encodeBase64()

Original issue reported on code.google.com by johan.ha...@gmail.com on 22 Mar 2011 at 3:21

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 22 Mar 2011 at 6:06