I already have an existing application implemented using java in app engine….now i want to connect this servlet from c# forms program ?,…this is the tried out code for request
HttpWebRequest authRequest = (HttpWebRequest)HttpWebRequest.Create(googleLoginUrl);
byte[] buffer = Encoding.ASCII.GetBytes(postData);
authRequest.ContentLength = buffer.Length;
Stream postDataStr=authRequest.GetRequestStream();
postDataStr.Write(buffer, 0, buffer.Length);
postDataStr.Close();
now it is connected to the GSE(Google Servlet Engine)…i want a response for this….how to implement that?
You just need to read the response:
You can see further examples from: http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.getresponse.aspx
Note: I believe since you’re posting data you’ll also have to set your
authRequestas a POST via: