views:

39

answers:

2

Hello Everyone, Is it possible to crawl user-authenticated websites using c#? Thnx

+1  A: 

Yes, it is possible assuming you have the credentials. Depending on the authentication mechanism used by the site different methods exist. WebClient could be used to send HTTP requests to the remote sites.

Darin Dimitrov
Thanks, but is it possible by using sockets?
Jojo
Yes but that would be insane if the site uses HTTP protocol.
Darin Dimitrov
A: 

To crawl user-authenticated websites, your crawler should be able to handle cookies and POST-requests.

The question is: do you want your crawler to sign up, validate itself by email and then sign in to crawl all contents?

floatless
i already have the credentials, i think its using form authentication. Can i use c# sockets to do this? What commands should I use? thanks...:)
Jojo
I suppose you could use **WebClient** or **HttpWebRequest**, as @Darin Dimitrov suggests.
floatless
Yes, sockets are a bad idea, lots of work for no reason (unless you have one of course?). If you're also asking 'what commands should I use' then it sounds like you haven't read up on the HTTP protocol; in which case using the .NET web classes is an even better idea
Kieren Johnstone