I'm using the below code to pass data to an old asp page. The people at the asp server location can se the request in their logs but according to them there is no ? after .asp wich makes the asp page unable to get the querystring variables.. I did also try to set the OpenRead("") value to the full url with all the querystring values but got the same result.. why is .NET cutting away my questionmark??? ?
myClient.Header s.Add("user-agent", "Mozilla/4.0(compatible; MSIE 6.0;Windows NT 5.2; .NET CLR 1.0.3705;)");
myClient.QueryS tring.Add("pass ", "Password") ;
myClient.QueryS tring.Add("acco unt", "Username") ;
myClient.QueryS tring.Add("from ", "0703364305 ");
myClient.QueryS tring.Add("to", "0703364305 ");
myClient.QueryS tring.Add("msg" , "Testmessag e");
Stream myStream = myClient.OpenRe ad("http://sms.wadata.se/send/sms.asp");
StreamReader sr = new StreamReader(my Stream);
string test = sr.ReadToEnd();
myStream.Close( );
myClient.Header s.Add("user-agent", "Mozilla/4.0(compatible; MSIE 6.0;Windows NT 5.2; .NET CLR 1.0.3705;)");
myClient.QueryS tring.Add("pass ", "Password") ;
myClient.QueryS tring.Add("acco unt", "Username") ;
myClient.QueryS tring.Add("from ", "0703364305 ");
myClient.QueryS tring.Add("to", "0703364305 ");
myClient.QueryS tring.Add("msg" , "Testmessag e");
Stream myStream = myClient.OpenRe ad("http://sms.wadata.se/send/sms.asp");
StreamReader sr = new StreamReader(my Stream);
string test = sr.ReadToEnd();
myStream.Close( );
Comment