John writes..

>Thanks for the response.
>I am trying to check to see if 
>this http://$Machine:port exists and
>what password this accepts.

Ok, the accepted authentication methods are published by the server in
an HTTP header. The WWW-Authenticate header. You will need to use the
Win32::Internet HTTP and OpenRequest functions to first get HTTP and
Request objects, and then to call $REQUEST->QueryInfo(
'WWW-Authenticate' ) to see the values for that header. There will be as
many WWW-Authenticate headers as there are authentication options. I'm
not sure how Win32::Internet handles multiple headers of the same name,
but just experiment. Probably you'll get an arrayref for multiple values
- or maybe an array.

I'm not sure if you're using Win32::Internet (instead of the more
standard LWP::UserAgent) because this is an intranet and that you
think/know that it can do NTLM authentication. But I didn't see any
mention in Win32::Internet doc of NTLM (assuming that's what you'll have
for your intranet site), but hopefully it will do NTLM with username and
password passed in the URL, eg:

  $inet->FetchURL('http://username:[EMAIL PROTECTED]/');

Good luck.

-- 
  Jason King
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to