Sending data over POST
-
Hi, I would like to send some data to some page on the web, that will then process that data. I would liek to send for instance. How do I do that? I checked MSDN but didn't find anything. Thanx in advance. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
-
Hi, I would like to send some data to some page on the web, that will then process that data. I would liek to send for instance. How do I do that? I checked MSDN but didn't find anything. Thanx in advance. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
Look at the documentation for the
HttpWebRequest.GetRequestStream
method in the .NET Framework SDK. It has a complete example. We have also covered this many times in the forum, so you could always search (although the responses are either the same or similar to what's in the .NET Framework SDK (which, btw, is installed locally with VS.NET by default and you should use that since it'll be much faster to use and right at your finger tips).Microsoft MVP, Visual C# My Articles
-
Look at the documentation for the
HttpWebRequest.GetRequestStream
method in the .NET Framework SDK. It has a complete example. We have also covered this many times in the forum, so you could always search (although the responses are either the same or similar to what's in the .NET Framework SDK (which, btw, is installed locally with VS.NET by default and you should use that since it'll be much faster to use and right at your finger tips).Microsoft MVP, Visual C# My Articles
-
I dont use VS.NET. I checked MSDN but didn't find anything as I said. I have now searched for
HttpWebRequest.GetRequestStream
, and now it works. Thanx Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!Fine, but the documentation for that method is still in MSDN: http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemNetHttpWebRequestClassGetRequestStreamTopic.asp[^]. Whatever you do, just make sure you use the same encoding on both the client and server. So, if you base64 encode your binary data (most common) then base64 decode it on the server. You could also just send binary data as well, which will be faster.
Microsoft MVP, Visual C# My Articles