473,467 Members | 1,303 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

automatically logging into a website

Is there a way I could enter a username and password in a windows form then
take that and cause it to open a website up in IE and "post" the information
to a site so i can cause that site to log in useing this information?
Nov 19 '05 #1
3 901
Hi Brain,

You can use the Web Browser control for the implementing the required
functionality.

Please refer to the following link for more details:

[How To Host a WebBrowser Control in Visual C# .NET to Post Form Data]
http://support.microsoft.com/?kbid=313068

HTH

Mona[Grapecity]
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:Of**************@TK2MSFTNGP09.phx.gbl...
Is there a way I could enter a username and password in a windows form
then take that and cause it to open a website up in IE and "post" the
information to a site so i can cause that site to log in useing this
information?

Nov 19 '05 #2
anyway to do it with an external browser though? would be a little bit
obtrusive to write a web browser host for the control so you had back
forward etc...

"Mona" <mo**@discussions.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi Brain,

You can use the Web Browser control for the implementing the required
functionality.

Please refer to the following link for more details:

[How To Host a WebBrowser Control in Visual C# .NET to Post Form Data]
http://support.microsoft.com/?kbid=313068

HTH

Mona[Grapecity]
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:Of**************@TK2MSFTNGP09.phx.gbl...
Is there a way I could enter a username and password in a windows form
then take that and cause it to open a website up in IE and "post" the
information to a site so i can cause that site to log in useing this
information?


Nov 19 '05 #3
"Brian Henry" <br**********@newsgroups.nospam> schrieb:
Is there a way I could enter a username and password in a windows form
then take that and cause it to open a website up in IE and "post" the
information to a site so i can cause that site to log in useing this
information?


Below there is a sample on how to do that with a 'WebRequest' object. I
assume that this will work with a 'POST' request too:

\\\
Imports System.IO
Imports System.Net
..
..
..
Dim wrq As WebRequest = _
WebRequest.Create("https://example.org/shop/order.jsp")
wrq.Credentials = New NetworkCredential("username", "password")
Dim wrp As WebResponse = wrq.GetResponse()
Dim sr As New StreamReader(wrp.GetResponseStream())
MessageBox.Show(sr.ReadToEnd())
sr.Close()
wrp.Close()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Neil Benn | last post by:
Hello, I'm running a test and having issues with logging, if I call logging.shutdown() and then want to start the logging going again then I get a problem as if I call shutdown, I can't get the...
3
by: Daniel Lichtenberger | last post by:
Hi, I'm looking for a logging module to be used in a mod_python-powered website. Python 2.3's logging package seems like a good fit, however I'm not sure if it's completely safe to use it under...
0
by: ohaya | last post by:
Hi, I've been researching this, and I'm not sure if what I'm trying to do is possible, but I thought that I'd ask: I have two webservers/websites. The first webserver/website is running...
10
by: Thomas Heller | last post by:
I'm about to add some logging calls to a library I have. How can I prevent that the script that uses the library prints 'No handlers could be found for logger "comtypes.client"' when the script...
2
by: Chumma Dede | last post by:
Hi, I need to code a DLL in .NET which logs the response times for our asp.net multi-tier application. The problem is we need to log the timestamps at multiple stages in a process lifecycle...
3
by: Brian Henry | last post by:
Is there a way I could enter a username and password in a windows form then take that and cause it to open a website up in IE and "post" the information to a site so i can cause that site to log in...
1
by: bnlockwood | last post by:
I'm researching ways in which I can create an ASPX page that will log into some of the major realtor websites with usernames and passwords and submit new listings rather then logging into each one...
6
by: Jeff | last post by:
ASP.NET 2.0 In my webproject I want to implement some kind of functionality which logs the vistits to the website. I want it to log what pages the user requested, when he arrived at the website...
5
by: Shiao | last post by:
Hi, I am getting duplicate log entries with the logging module. The following behaves as expected, leading to one log entry for each logged event: logging.basicConfig(level=logging.DEBUG,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.