473,395 Members | 1,343 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,395 software developers and data experts.

Access a secured website programmatically

I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks

Bill
Jun 12 '07 #1
5 5906
On Jun 11, 6:08 pm, "Bill Nguyen" <billn_nospam_ple...@jaco.com>
wrote:
I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks

Bill
Bill,

If your using the WebClient class, try setting the WebClient instances
credentials property...

Dim wc As New WebClient
wc.Credentials = New NetworkCredentials("UserName", "Password")

HTH,
Tom Shelton

Jun 12 '07 #2

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks
These are C# examples, but every thing you can do in C# can be done with
VB.Net.

http://www.java2s.com/Tutorial/CShar...eadwebsite.htm

Jun 12 '07 #3
Thank you very much Tom and Arnold.
I will work on this .

Bill
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
>
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>>I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks

These are C# examples, but every thing you can do in C# can be done with
VB.Net.

http://www.java2s.com/Tutorial/CShar...eadwebsite.htm

Jun 12 '07 #4
Arnold;
Here's what I got!

I can login, however, I can't get the data I need.
The site is running ASP app, and it will display a page with the content I
would like to capture . I can "View Source" and see the data are embedded in
the HTML tags, but don't know how to get it. How can you read/download data
in the page?

Thanks a million!

Bill
--------------

(This is the bottom portion of the page)
Jaco Oil Co. Unleaded $2.3552 6/11/2007 0.03

Jaco Oil Co. Plus $2.4352 6/11/2007 0.03

Jaco Oil Co. Supreme $2.5152 6/11/2007 0.03

Jaco Oil Co. Diesel #2 $2.359 6/11/2007 0.02


"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
>
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>>I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks

These are C# examples, but every thing you can do in C# can be done with
VB.Net.

http://www.java2s.com/Tutorial/CShar...eadwebsite.htm



Jun 12 '07 #5

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:OG**************@TK2MSFTNGP04.phx.gbl...
Arnold;
Here's what I got!

I can login, however, I can't get the data I need.
The site is running ASP app, and it will display a page with the content I
would like to capture . I can "View Source" and see the data are embedded
in the HTML tags, but don't know how to get it. How can you read/download
data in the page?
http://www.planet-source-code.com/vb...&lngWId=10#zip
>
(This is the bottom portion of the page)
Jaco Oil Co. Unleaded $2.3552 6/11/2007 0.03

Jaco Oil Co. Plus $2.4352 6/11/2007 0.03

Jaco Oil Co. Supreme $2.5152 6/11/2007 0.03

Jaco Oil Co. Diesel #2 $2.359 6/11/2007 0.02


"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
>>
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>>>I have the URL, loginID, and password.
How do I login the website within my VB app?
Thanks

These are C# examples, but every thing you can do in C# can be done with
VB.Net.

http://www.java2s.com/Tutorial/CShar...eadwebsite.htm


Jun 12 '07 #6

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

Similar topics

5
by: Ed Jaffe | last post by:
All: 1) Could any one show me any website which is using asp, ssl, sql server? 2) Is ASP/IIS technology good enough to create a commerical secured internet web application? 3) People said most...
2
by: Joe | last post by:
Hi, We want to build a couple of secured pages which will be viewable only to those who have an account. One way of implementing the security is using session cookies (temporary cookies). When...
2
by: Dennis Freud | last post by:
Hi, I´m asking for some general advice here. I have a project which has been developed in Delphi up to a point where my developer split up with me. I have to decide now wether access is suitable...
5
by: Nathan Bloom | last post by:
Hi, I have a secured database that runs fine on the computer the database is installed on. I have several workstations with access runtime installed that also need access to the database. ...
13
by: Peter L Reader | last post by:
I have to say, from a practical standpoint I'm not all that impressed with the security built into Office 2K3. I'm a small-scale developer building Access apps for a few non-profits locally; I...
2
by: VB Programmer | last post by:
I want to write a file to the "secured" dir that is on my website. The full path is: C:\inetpub\wwwroot\MyWebSite\Secured I tried this, but it didn't work: Dim strFileName As String =...
1
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
4
by: mrouleau | last post by:
I am sorry if this is the wrong group to ask, if so please point me in the correct direction. My problem is I have an MDB file with user-level security on it (mdw). When i move it over to a...
1
by: securedcardss | last post by:
http://card.2youtop.info secured credit card card credit instant secured card cash credit secured card
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.