Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

http user and password

Status
Not open for further replies.

tuzojazz

Programmer
Dec 26, 2005
58
MX
Hi:

I'm trying to access a web service thas is in a remote server.

The remote server has user and password on http protocol and I get an error when I access the web service by code.

when the remote server does not have http user and password the web service works well.


My code is something like this

-------------------------------------------------
Dim theClientList As new ClientList()
theClientList.Url = "-----------------------------------------------------

How can I set the http user and password to the webservice?

Thanks!!
 
CJELEC is correct with the above, however if you are updated on your IE patches, etc...Microsoft disabled this due to hackers, etc. However, you can turn it back on if you make a registry change; throw the below into a VBS file and run it if you do not want to make the change manually through regedit. Once you make the below change, you can put the login and password in the URL and you will be good to go.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE]
"iexplore.exe"=dword:00000000
"explorer.exe"=dword:00000000
 
arznrchrd,
Doesn't setting the site as a trusted or local site fix this???
 
No. I tried that. If you put the login and password in the URL, it doesn't allow you to do it unless you have that change in the registry or go through a little more work to do it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top