Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
AnswerRe: Regular Expressions Performance Pin
Luc Pattyn13-Jul-10 22:47
sitebuilderLuc Pattyn13-Jul-10 22:47 
AnswerRe: Regular Expressions Performance Pin
riced14-Jul-10 0:15
riced14-Jul-10 0:15 
QuestionLogging to Website Pin
NaveenHS13-Jul-10 21:13
NaveenHS13-Jul-10 21:13 
AnswerRe: Logging to Website Pin
Peace ON13-Jul-10 21:27
Peace ON13-Jul-10 21:27 
GeneralRe: Logging to Website Pin
NaveenHS13-Jul-10 21:38
NaveenHS13-Jul-10 21:38 
GeneralRe: Logging to Website Pin
karmjit43513-Jul-10 21:48
karmjit43513-Jul-10 21:48 
AnswerRe: Logging to Website Pin
Luc Pattyn13-Jul-10 21:43
sitebuilderLuc Pattyn13-Jul-10 21:43 
AnswerRe: Logging to Website Pin
Bigdeak13-Jul-10 22:02
Bigdeak13-Jul-10 22:02 
I have the same problem to login to a website, therefore i have only a half answer.
I know 4 methods to download informations from a website.

1. System.NET.WebClient

This is a native Client class to download Data or the html string from a internet adress.

WebClient webClient = new WebClient();
webClientData = webClient.DownloadData(uri);


as far as i know it is possible to login to a website with this class, but i never have find out how.

2. System.Windows.Forms.WebBrowser

This is a internet explorer class for the framework. You can login to a website, because it uses the variables/cookies/etc. from the internet explorer.

3. System.NET.WebRequest

In this class it's possible to use POST and GET, this is needed to login to a website, but i don't know how to POST login informations, i only know how to donwload the data from a website.

byte[] buffer;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
System.IO.Stream s = resp.GetResponseStream();


4. TCP Socket

Yes, this protocol bases upon to TCP, you can connect to the website and communicate over the Hypertext Transfer Protocol with the website.

If you need more informations about the methods, you can use google.
I hope i could help you a bit and sorry for my bad english.
QuestionNeed Help Pin
mjawadkhatri13-Jul-10 20:21
mjawadkhatri13-Jul-10 20:21 
AnswerRe: Need Help Pin
OkkiePepernoot13-Jul-10 21:09
OkkiePepernoot13-Jul-10 21:09 
AnswerRe: Need Help Pin
karmjit43513-Jul-10 21:15
karmjit43513-Jul-10 21:15 
AnswerRe: Need Help Pin
OriginalGriff13-Jul-10 21:40
mveOriginalGriff13-Jul-10 21:40 
AnswerRe: Need Help Pin
Luc Pattyn13-Jul-10 21:49
sitebuilderLuc Pattyn13-Jul-10 21:49 
AnswerRe: Need Help Pin
Pete O'Hanlon13-Jul-10 22:02
mvePete O'Hanlon13-Jul-10 22:02 
QuestionNetwork Transaction Management...... Need Help... Pin
nEar_mO13-Jul-10 16:42
nEar_mO13-Jul-10 16:42 
AnswerRe: Network Transaction Management...... Need Help... Pin
Richard Andrew x6413-Jul-10 17:33
professionalRichard Andrew x6413-Jul-10 17:33 
GeneralRe: Network Transaction Management...... Need Help... Pin
nEar_mO13-Jul-10 17:40
nEar_mO13-Jul-10 17:40 
AnswerRe: Network Transaction Management...... Need Help... Pin
Peace ON13-Jul-10 19:49
Peace ON13-Jul-10 19:49 
QuestionTrigger a Parent Form Event From UserControl In TableLayoutPanel Pin
JessStuart13-Jul-10 14:32
JessStuart13-Jul-10 14:32 
AnswerRe: Trigger a Parent Form Event From UserControl In TableLayoutPanel Pin
Richard Blythe13-Jul-10 16:12
Richard Blythe13-Jul-10 16:12 
GeneralRe: Trigger a Parent Form Event From UserControl In TableLayoutPanel Pin
JessStuart14-Jul-10 6:51
JessStuart14-Jul-10 6:51 
GeneralRe: Trigger a Parent Form Event From UserControl In TableLayoutPanel Pin
Richard Blythe14-Jul-10 7:40
Richard Blythe14-Jul-10 7:40 
GeneralRe: Trigger a Parent Form Event From UserControl In TableLayoutPanel Pin
JessStuart14-Jul-10 8:07
JessStuart14-Jul-10 8:07 
GeneralRe: Trigger a Parent Form Event From UserControl In TableLayoutPanel Pin
Richard Blythe14-Jul-10 8:28
Richard Blythe14-Jul-10 8:28 
QuestionPlaying mp3 files?? Pin
Muammar©13-Jul-10 7:11
Muammar©13-Jul-10 7:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.