I already know how to do everything else, but every time I try to login using then Microsoft internet controls I can never get logged in. So is there a way using winsock to login to my schools website? Thanks.
Printable View
I already know how to do everything else, but every time I try to login using then Microsoft internet controls I can never get logged in. So is there a way using winsock to login to my schools website? Thanks.
Welcome to the forums. :wave:
Do you have the proper credentials and permissions to access your schools web site?
Yes, I do indeed have all the needed things to login (username, password, ect...) Also I was thinking there is a way that you can login with the URL because the school's site is written in PHP so cant I do www.aaaaa.com/login?username=****password=***? Just wondering because I saw that somewhere.
In order to login by putting the credentials in the URL, the PHP script would have be set up fairly poorly security wise. Also, transmitting data like that across an unencrypted connection isn't the wisest thing to do in the world.
What flavor of VB are you using? If you are using a .NET variant, use the webclient and a namevalue collection. You just fill the collection with form parameters and then pass the collection into WebClient.PostValues I believe, along with the URL of the form.
Im using VB 6.0
this page has information about how to send HTTP post data to a web site, but it uses the web browser control. It seems like it will do what you want though.
I was hoping to be able to use winsock. But I'll try this.
Winsock is a very low level of socket communication. It is probably possible, but you have to learn the HTTP protocol and make a connection on port 80 and start sending HTTP POST commands. There is some good information on this on the w3 website. :)