
fatblowfish at gmail
Apr 15, 2012, 6:00 PM
Post #1 of 1
(163 views)
Permalink
|
|
backend polling basic auth
|
|
Hi, For the backend health polling, I had to use the .request parameter to specify the basic auth credential necessary to authenticate with the backend; I'd definitely get a 401 if I just used .url plainly. For example, using a bogus url,password of course... .request = "GET /foo/i_is_healthy HTTP/1.1" "Host: 127.0.0.5" "Authorization: Basic ZmF0Ymxvd2Zpc2g6c29sb25nYW5kdGhhbmtzZm9yYWxsdGhlZmlzaA==" "Connection: close"; My question is: Is there a much elegant approach to this? I'd rather *not*have the base64 encoded string on a(ny) file on the server.
|