473,385 Members | 1,317 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,385 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

Jul 21 '05 #1
6 1614
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

Jul 21 '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

Jul 21 '05 #3
Tel me exactly what you want, a typical scenario and I'll
try to help.
Example:
Login using my Active Directory login
User belongs to group ADMIN
Redirects the user to the admin page??

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

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

Is that possible ? please give few examples ;)

Help is appreciated.

Thanks,
Shailendra Batham

.

Jul 21 '05 #4
My question is, can I write a .Net C# or VB.Net program which will log
to our company
web site with the appropriate parameters and click a few links and
check the report and then check some values in the report and then
email me.

is that possible ?

Jul 21 '05 #5
Is there anyone out there who had such a problem ? or any idea how to
do this ?

Jul 21 '05 #6
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 ?

Jul 21 '05 #7

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: 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...
4
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...
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.