I'm trying to do some work with fakemailgenerator, the url goes well with httpwebrequest
and gets printed by MessageBox.Show
properly, here is the piece of code with the problem, btw there no errors or exeptions.
//FOR EXAMPLE mail@fakemail.com
string[] mailSplit = mail.Split(new string[] { "@" },
StringSplitOptions.None); // MAKING AN ARRAY TO SPLIT USER
AND DOMAIN
string url = @"http://www.fakemailgenerator.com/#/" +
mailSplit[1] + "/" + mailSplit[0] + "/"; //GENERATING AND SAVING THE FAKE MAIL URL.
MessageBox.Show(url); //THIS PRINTS http://www.fakemailgenerator.com/#/fakemail.com/mail
Process.Start("chrome", url); //THIS GOES TO http://www.fakemailgenerator.com/#/fakemail.com
EDIT
This have nothing to do with fakemailgenerator.com, because as mentioned above i tried that with httpwebrequest
, plus in the loading state it's just http://www.fakemailgenerator.com/#/fakemail.com
and not the full url.
EDIT
I tried rightnow putting the url manually and it went good and have been opened in chrome successfully, and i have observed one problem with the url when printed with MessageBox.Show
(while using variables, not setting url manually), is showing url like http://www.fakemailgenerator.com/#/domain.com /user
with a whitespace between .com
and /user
, so i've tried replacing the white space with \0
(null
) using url.Replace(' ','\0')
, but this failed, so i think maybe there is a way to remove the white space?