Missing ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darkcode
    New Member
    • Aug 2007
    • 10

    #1

    Missing ?

    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( );
  • darkcode
    New Member
    • Aug 2007
    • 10

    #2
    I did a sniff on it.. seems my ? is there when I send the data but when they recieve it it's not there.. strange..

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      What object type is myClient ?
      Is your request set specifically to GET?
      That is a very strange occurance

      Comment

      Working...