[Http-webtest-general] problem with basic auth
Brought to you by:
m_ilya,
richardanderson
|
From: David M. <dmc...@la...> - 2005-01-11 02:20:00
|
Greetings,
I'm attempting to test a site that uses http basic auth. I'm trying to use
the "auth" test parameter for this. Unfortunately, the server keeps telling
me that the user ID or password is invalid. Here is the relevant snip from
my script. Note that the script runs as expected when I disable basic auth
and remove the auth test parameter from the script. Any ideas?
$webtest->run_tests(
[
{
test_name =>
'navigate to add document for translation form',
url => $base_url,
method => 'get',
params =>
['form', 'display_add_doc', 'type', 'url'],
text_require =>
[@translation_form_text_require, 'URL of the page to translate' ],
text_forbid =>
[@translation_form_text_forbid]
}
],
{
auth =>
[$userid, $password],
default_report => $default_report
}
);
Thanks, in advance.
- David
|