Hi all,
I trying to convert a C# project to linux. This application is a simple project wich contain 2 tabs (options and webbrowser viewer).
All application (except .config file and it's resolve) is running without modify any source code but i've a problem with webbrowser component.
I must to connect to a website with my application and i use this code :
-----------------------------------------------------------------------
private void Connect()
{
string head = string.Empty;
if (Config.SSL == "0")
head = "http";
else
head = "https";
Uri uri = new Uri(head + "://" + Config.URL, UriKind.RelativeOrAbsolute);
string postData = string.Format("login="{0}&pass={1}", _login,_password);
byte[] PostDataByte = Encoding.UTF8.GetBytes(postData);
string header = "Content-Type: application/x-www-form-urlencoded" + Environment.NewLine;
_browser.Navigate(uri, "", PostDataByte, header);
}
-----------------------------------------------------------------------
In windows, "Navigate" method use POST, but in linux, method use GET (and i've need a post method). I search into this forum (and others) and into object WebBrowser in monodevelop but i do not have found a method or property to specify method action.
Thank you on advance