New Members FAQ
Talk to Webmaster Tony John
How to http post method in asp.net C#
12 Jul 2012
how to send http post method in this code i want to send request with json string to server and server send http response in json formate how to handle this round trip
StringBuilder sb = new StringBuilder();
byte buf = new byte;
//do get request
HttpWebRequest request = (HttpWebRequest)
// request.Method = "POST";
// request.ContentLength = postsourcedata.Length;
HttpWebResponse response = (HttpWebResponse)
Stream resStream = response.GetResponseStream();
string tempString = null;
int count = 0;
//read the data and print it
count = resStream.Read(buf, 0, buf.Length);
if (count != 0)
tempString = Encoding.ASCII.GetString(buf, 0, count);
while (count > 0);
Anil Kumar Pandey
Date: 12/Jul/2012 Rating:
Can you please let us know that what is the issue in your code.
You already making use of the POST method. Are you able to execute this code successfully?
Thanks & Regards
Anil Kumar Pandey
Microsoft MVP, DNS MVM
This thread is locked for new responses. Please post your comments and questions as a
If required, refer to the URL of this page in your
Regular expression for File upload control
Excel File data inset into Oracle Database using .NET
Return to Discussion Forum
Post New Message
no of click on advertisement in asp.net application
Please Please help.................. tooo urgent
Please tell me .Net interview Questions for 2+ Years Exp
To upload Documents like(doc,pdf,etc) to file system
Follow us on Twitter:
Last 7 Days
Asheej T K
Awards & Gifts
Articles Rss Feeds
Forum Rss Feeds
Revenue Sharing sites
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.