Jul 9, 2017 03:34 PM
(This post was last modified: Jul 10, 2017 03:02 PM by MalwareMop.)
Solution found. Thanks to Das, appreciated.
|
.NET
Add Cookies to WebBrowsers Control |
|
Jul 9, 2017 03:34 PM
(This post was last modified: Jul 10, 2017 03:02 PM by MalwareMop.)
Solution found. Thanks to Das, appreciated.
Jul 9, 2017 06:28 PM
(This post was last modified: Jul 9, 2017 06:30 PM by MalwareMop.)
(Jul 9, 2017 06:17 PM)Ninja Wrote: Are you sure the cookies are set? And if so, are you sure they are valid? So the above code works for you? Of course they are in the container, it's the first thing I checked. They are also totally valid as I use them in other HTTP webrequests without error. Just when I try to set the actual control does it not work.
Jul 9, 2017 06:32 PM
(This post was last modified: Jul 10, 2017 08:36 AM by Ninja.)
(Jul 9, 2017 06:28 PM)MalwareMop Wrote: So the above code works for you? I never said that. And idk what the problem is then. If the cookies are set then it should work. Maybe it has to do with the URL? Try using only the host for a domain, don't include a path. So instead of things like: http://website.com/page do: http://website.com/ Hint: https://msdn.microsoft.com/en-us/library....110).aspx (Jul 9, 2017 06:28 PM)MalwareMop Wrote: So the above code works for you? ![]() Looks like it's working fine for me
Jul 10, 2017 02:53 PM
(This post was last modified: Jul 10, 2017 02:59 PM by Das Swag.)
You can ignore my PM
Change Code Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickTo Code Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickAnd you should be set. Your web requests were going to https://tinychat.com/ so your cookies were getting set to the domain of tinychat.com when you tried to login you grabbed cookies from www.tinychat.com which you had no cookies for, so your cookie container was actually empty. edited |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [C#] by Suspect.Jun 19, 2018 11:39 PM | 3 | 348 |
Jun 19, 2018 11:39 PM Last Post: Snowfox |
| [Shell] by PhloxAug 28, 2017 02:21 PM | 2 | 194 |
Aug 28, 2017 02:21 PM Last Post: Phlox |
| [Shell] by PhloxAug 26, 2017 06:35 PM | 0 | 158 |
Aug 26, 2017 06:35 PM Last Post: Phlox |