Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Source] Basic WebRequest Login Example + How to get info once logged in
#1
[Image: Oekou.png]

This example source is meant to teach you how to log in to a website, use that login cookie to navigate to another webpage on the site with the same cookie (so that you stay logged in) and grab some info. Can be used in many situations, I used SupportForums as my example login. You can make changes to this source to log in to another website and grab info, it has a lot of uses. This will teach the basic .net user how to use web requests/responses to login+getinfo.

This uses a bit of Regex (to teach you how to loop through and grab text that may change in the source) as well.

Enjoy!
Reply
#2
This looks really neat, thanks. Smile
[Image: cooldude.png]

(09-05-2011, 08:36 AM)Orgy Wrote: If you understand what you're doing, you aren't learning anything. ;)
Reply
#3
(11-12-2011, 01:33 PM)★Cooldude★ Wrote: This looks really neat, thanks. Smile

No problem, hope it can help you and others.
Reply
#4
Pretty cool I downloaded! Thanks a lot!
Reply
#5
I don't see any download link... ?!?!?
Reply
#6
Thanks for this, although I had to create my own for my current Project - Still works efficiently. Smile

Regex for a Date in the order: "MONTH DD, YYYY"
PHP Code:
Regex.IsMatch(Line"((?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?" _
                            
"|Sep(?:tember)?|Sept|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?))(\s+)((?:(?:[0-2]?\d{1})|(?:[3][01]{1})))(?![\d])(.)(\s+)" _
                            
"((?:(?:[1]{1}\d{1}\d{1}\d{1})|(?:[2]{1}\d{3})))(?![\d])"RegexOptions.IgnoreCase Or RegexOptions.Singleline
"If you cannot explain something simply, then you do not understand it at all." - Albert Einstein
"The best way to predict the future is to invent it." - Alan Kay
Reply
#7
Thank you for this. I have bookmarked it for when I get time to learn webrequests lol.
Reply
#8
so wheres the dl link??
cant see it
Reply
#9
Erm, where's the download link? Lol, I think it may have been deleted.
Reply
#10
I am pretty sure you are short a download link here, iRtehLeet.
Just saying.. :3

~ZerO
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [VB.NET] Get Region Info [Source] ƃu∀ ıʞƃu∀ 0 1,112 11-28-2012, 04:38 AM
Last Post: ƃu∀ ıʞƃu∀
  [VB.Net] Local/Remote TCP info from process [Source] The-One 5 3,853 08-11-2012, 05:18 PM
Last Post: Kenneth
  [Source ] Hemp Tycoon App [/Source] VB.net KoBE 8 9,365 03-05-2012, 10:30 PM
Last Post: SomeWhiteGuy?
  HWID/LOGIN SYSTEM(Help) Coding Support 5 2,177 01-08-2012, 11:57 AM
Last Post: ★Cooldude★
  Facebook Login Example [Source Included] ₠o™ 12 2,601 01-04-2012, 02:32 PM
Last Post: Pikachu

Forum Jump:


Users browsing this thread: 1 Guest(s)