Click here to Skip to main content
15,745,509 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to show my result from web service for push notification and current location update on web service.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("");
                          request.Method = "Post";
                          //request.ContentType = "application/x-www-form-urlencoded";

                          request.Headers["authKey"] = authKey;
                          request.Headers["latitude"] = geoposition.Coordinate.Latitude.ToString();
                          request.Headers["longitude"] = geoposition.Coordinate.Longitude.ToString();
                          request.Headers["timeInterval"] = Minutes;
                          request.Headers["time"] = updatetime;
                          request.Headers["profileStatus"] = "true";
                          HttpWebResponse response = (HttpWebResponse)await request.GetResponseAsync();

                          using (var reader = new StreamReader(response.GetResponseStream()))

This is my code. I got result empty HttpWebRequest format correct or not?
Updated 17-Jun-15 1:47am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900