authenticate web page access in VB

securonic

Active member
Joined
Aug 29, 2010
Messages
34
Location
Midlands Uk
Programming Experience
Beginner
Hi everyone.

i have a question but i am not sure i am aiming at the right place so please feel free to correct me. i am writing a vb program which takes an image from a secure web server and places it into a picturebox. as i mentioned, the web server is secured so it requires a user name and password when it is accessed. essentially i am accessing the server with a HTTP CGI command and writing the image back into the picturebox. my only problem is that when i do this i receive a '401 not authenticated' response when i run the code. i need to find a way to authenticate either using VB or can it be done with a CGI command. any pointers welcome.

Regards
 
well i found a way to do this so thought i might share. webclient class contains a credentials method in which you add the log in details related to the secure URI used. it worked a treat actually,
 
Back
Top