Visual C# 2008 Express Application - open urls, handle cookies and login
I need some help in Visual C# 2008 Express.
I don't want you to write the full code , I just need some examples, and help documents.
The project aim:
With the application you can login to sites (that using cookies) through a small browser window (system.windows.forms.webbrowser). It is a normal browser. It displays example.com/login .php
I would like the user to login through this, to get the login cookies.
Than there is a textbox: user can enter an url
Than the application only "requests" the url (don't really download and don't displays is)
But on this part I cant use the browsers cookies , so I cant login.
I can't login with example.com/login.php?user=admin&pass=something too.
But I've exported the raw stream and the headers when I login with Firefox (data from HttpAnalyzer *code section)
I tried HttpWebRequest without and with CookieContainer but I can't get it work.
Is there any help or examples on this?
Or is there any way to use the HttpAnalyzer's data?
Please help me!
If you can't understand something, I can try to write down it again, because english is not my main language.
Re: Visual C# 2008 Express Application - open urls, handle cookies and login
Well i don't understand why you use .php extension with a C# website... but i think you need to look for a nice little book on how to build a website with Visual Studio using C#. There are plenty of them out there, i'm sure you can find a free one around somewhere on the internet. They will go over everything you need to know including login, menus, and using a database with your website.