473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Programatically Logging in ...

Hello Gurus,
Can someone direct me to the right path.

Using C# to create a web service, how can I programatically log in a
web site (with a valid username and password) and navigate to a
particular URL in it and check the contents of that page.

Is that possible ? please give few examples ;)

Help is appreciated.

Thanks,
Shailendra Batham

Nov 16 '05 #1
4 1256
Hi...

Your program can do anything you can do at the keyboard. In order to log
in, you would need to issue an HTTP request using POST or GET appropriately
and supply the proper parameters. The response from the Web server is to
send you a stream of HTML. Your program could read that block of HTML and
do whatever it wants to... a Web Browser's job is to display it. You could
do whatever.

If the Web site issues a cookie to logged in users, you can fetch the cookie
from the response, store it and send it with subsequent requests.

John Puopolo
"batham" <ba****@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Hello Gurus,
Can someone direct me to the right path.

Using C# to create a web service, how can I programatically log in a
web site (with a valid username and password) and navigate to a
particular URL in it and check the contents of that page.

Is that possible ? please give few examples ;)

Help is appreciated.

Thanks,
Shailendra Batham

Nov 16 '05 #2
Thanks for the reply John.

But could you show me some C# or VB.Net samples, to logging in the web
site with parameters and how to programatically navigate.

Thanks,
Shailendra Batham

Nov 16 '05 #3
Is there anyone out there who had such a problem ? or any idea how to
do this ?

Nov 16 '05 #4
Hi there...

WS-Security defines a UsernameToken element to provide the means for basic
username/password validation. You can download WSE2.0 from MS to add this
functionality to your application.

<!-- Clear Text Password -->
<UsernameToken>
<Username>Bob</Username>
<Password Type="wsse:PasswordText">Abracadabra</Password>
</UsernameToken>

--
Peter Wood
Visit us at http://www.webserviceshelp.org
______________________________________
"batham" <ba****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Is there anyone out there who had such a problem ? or any idea how to
do this ?

Nov 17 '05 #5

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

Similar topics

1
by: jjesso | last post by:
I am trying to add a new logging level. logging.config.fileConfig("bengineLog.cfg") logging.CLIENT = logging.INFO + 1 logging.addLevelName( logging.CLIENT, 'CLIENT' ) logging.root.setLevel( )...
0
by: Karuppasamy | last post by:
H I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net I installed everything as per the Instructions given in the 'Development Using the Logging Block' ...
6
by: batham | last post by:
Hello Gurus, Can someone direct me to the right path. Using C# to create a web service, how can I programatically log in a web site (with a valid username and password) and navigate to a...
6
by: pmatos | last post by:
Hi all, I am trying to create a simple but efficient C++ logging class. I know there are lots of them out there but I want something simple and efficient. The number one requirement is the...
23
by: Rotem | last post by:
Hi, while working on something in my current project I have made several improvements to the logging package in Python, two of them are worth mentioning: 1. addition of a logging record field...
6
by: Burkhard Schultheis | last post by:
As I wrote last week, we have a problem with a DB2 V8 on Linux. Here is what is in db2diag.log during online backup: Starting a full database backup. 2004-04-01-02.33.54.760164 ...
0
by: spamfurnace | last post by:
Hi there on this rainy old day, I have some users logging into an asp.net website. The server the site sits on allows users to webmail through a common service/component called Horde. In order...
2
by: Rick Derthick | last post by:
Hello, I'm adding a logging capability to error handler routines for troubleshooting (using vb.net) and had just recently come across a way to programatically determine the name of the...
0
by: robert | last post by:
As more and more python packages are starting to use the bloomy (Java-ish) 'logging' module in a mood of responsibility and as I am not overly happy with the current "thickener" style of usage, I...
4
n8kindt
by: n8kindt | last post by:
i'm trying to create a secure scenario where no one will be able to know our encrypted database passcode. BUT if they login to a form in another database successfully, it will open the encrypted...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.