Re: [Http-webtest-general] regarding authorization support in webtest
Brought to you by:
m_ilya,
richardanderson
From: Raghavendra H. <rag...@te...> - 2004-05-24 04:55:18
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <pre>Thanks for your reply. HTTP 1.1 supports Special authorization which does not require the client to send username/password in clear text at login pages. There are 2 kinds of authorization 1) Basic 2) Digest My SUT was upgraded to support Digest HTTP authorization method where Server challeges the client with a challenge text and Client has to create md5 digest based on few parameters such nonce, username, password, uri, etc.. and send this to server. (RFC 2617 explains this) My problem was how to create such digest, given the challenge text(nonce) and other parameters.. And now, i have found a way to successfully login to DUT - but still facing some problems as all the further requests to server has also have to send such a uniq "digest" (which has to be recalculated as uri we are requesting is different) and a uniq "counter" which allows the server to avoid replay attacks.. Please let me know, if any api is available in WebTest through which all these parameters are automatically calculated/incremented and sent to server. (Just like cookie support) Thanks Raghavendra </pre> <br> William McKee wrote:<br> <blockquote type="cite" cite="mid...@kn..."> <pre wrap="">On Fri, May 21, 2004 at 11:18:04AM +0530, Raghavendra Hegde wrote: </pre> <blockquote type="cite"> <pre wrap="">I need to use the WebTest with Authorization support.. Does the WebTest support this kind of authorization? Is there any readily available method? </pre> </blockquote> <pre wrap=""><!----> I think it depends on what kind of Authorization support you need. Have you looked at the examples provided in the cookbook that is distributed with the module? Have you tried anything yet? I have no trouble logging into my websites which require username/password. HTH, William </pre> </blockquote> </body> </html> |