Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Sending data over POST

Sending data over POST

Scheduled Pinned Locked Moved C#
questioncsharp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CWIZO
    wrote on last edited by
    #1

    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!

    H 1 Reply Last reply
    0
    • C CWIZO

      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!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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

      C 1 Reply Last reply
      0
      • H Heath Stewart

        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

        C Offline
        C Offline
        CWIZO
        wrote on last edited by
        #3

        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!

        H 1 Reply Last reply
        0
        • C CWIZO

          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!

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups