Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

Accessing URL

$
0
0
I am trying to access a URL that I have authorization for to access. I have a User Name and a Password.

I tried the following code using the inet control:

Inet1.UserName = "xxxxxxx"
Inet1.Password = "xxxxxxx"

Text2.Text = Inet1.OpenURL(Text1.Text)
It looks to simple to work and indeed it does not. I get the following message:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>


Is there a way to authenticate my request?

Peter Schoots

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>