Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Writing to default browser

How would I go about writing a string to a target in the default browser e.g. Firefox or chrome, I don't want to use the webbrowser in vb, I've looked all over and tried a few things but all with no success.
The main objective is to log into a webpage through the default browser.

Thanks 🤝
1. Don't, unless you want a nightmare.
2. You can use different 'browser' packs, check out Awesomium or Gecko.

The second option is more viable, but you might be more limited in it, than in the standard web browser control.
[Image: PVoDiqS.png]
You can use webrequests or webclients to login to a web page.
(Mar 4, 2016 12:05 PM)Ninja Wrote:  You can use webrequests or webclients to login to a web page.

Exactly, way more efficient.
[Image: PVoDiqS.png]
(Mar 4, 2016 05:08 PM)Cecilia Wrote:  Exactly, way more efficient.

Yee.
And on top of that, I forgot to mention, make sure you handle sessions well. I believe the webclient doesn't handle cookies on it's own so I recommend webrequests. MSDN has documentation and examples for webrequests (and also webclients of course).
(Mar 4, 2016 05:29 PM)Ninja Wrote:  Yee.
And on top of that, I forgot to mention, make sure you handle sessions well. I believe the webclient doesn't handle cookies on it's own so I recommend webrequests. MSDN has documentation and examples for webrequests (and also webclients of course).

Please, don't make a class for 'web requests' because you 'need cookie support'.

Extend webclient, its awesome.
[Image: PVoDiqS.png]
(Mar 4, 2016 05:32 PM)Cecilia Wrote:  Please, don't make a class for 'web requests' because you 'need cookie support'.

Extend webclient, its awesome.

You and me both have very different definitions of awesome then. Webrequest already has support for cookies so why extend webclient then. Write a simple class to send webrequests and automatically write postdata and set the post headers, automatically read responses to a string, and optionally a reference parameter to a cookie container object, then you can send webrequests to whatever site you want with 2-3 lines of code.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by frappppSep 7, 2015 02:59 PM 2 334 Sep 7, 2015 02:59 PM
Last Post: camelCase
[.NET] by DarkMethodsAug 17, 2015 03:32 AM 1 240 Aug 17, 2015 03:32 AM
Last Post: Aristocles
[.NET] by ShikatanaiJun 17, 2015 07:21 PM 12 568 Jun 17, 2015 07:21 PM
Last Post: Shikatanai