[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Login and get page

Posted on 2006-05-06
7
Medium Priority
?
173 Views
Last Modified: 2010-04-23
Ok, basically, I want an elaboration of this question:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21275141.html

Like, how do I login to a page (e.g. myspace.com), get the page source, click a link on that new page, get the source of the resulting page, send some form data, logout.

I'm not sure on the login part, cause if I try downloading the page by sending an encoded user and pass, I can't login, gives me an error about invalid login or something of the sort.
0
Comment
Question by:codemaster3
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:MasterThai
ID: 16625931
You could use the webbrowser control or httpwebrequest or tcp sockets webbrowser control would probably be the easiest for you.
0
 

Author Comment

by:codemaster3
ID: 16625962
Care to elaborate?
0
 
LVL 2

Accepted Solution

by:
MasterThai earned 2000 total points
ID: 16636816
http://www.ondotnet.com/pub/a/dotnet/2001/12/10/excelstocks.html?page=2 <-- good webbrowser control examplehttp://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1953&lngWId=10
<-- working example

using tcp or httpwebrequest will be a bit more difficult for you because you will have to handle cookies but the httpwebrequest has a built in function which handles cookies you just need to set/send the cookies with the request after login.
0
 

Author Comment

by:codemaster3
ID: 16637831
Sounds fun :), I'll try it and see what I can come up with, thanks. I'll let you know how it goes.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question