How to send http request?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaurierram
    New Member
    • May 2008
    • 6

    How to send http request?

    Hii,
    I want to send data from a pocket pc to a desktop. It is to be done by sending a http request.Can I get the code for that? Pocket pc has C#.net 1.0 and desktop has c#.net2.0. What other directories are to be included work out the code?
  • pootle
    New Member
    • Apr 2008
    • 68

    #2
    Originally posted by gaurierram
    Hii,
    I want to send data from a pocket pc to a desktop. It is to be done by sending a http request.Can I get the code for that? Pocket pc has C#.net 1.0 and desktop has c#.net2.0. What other directories are to be included work out the code?
    Hi,

    I don't know if it is correct for the compact framework (I have worked with it), but I used the following resource when I was playing around with this:
    http://www.example-code.com/csharp/http.asp

    Regards.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Does your pocket PC have access to the HttpWebRequest object?

      Comment

      • gaurierram
        New Member
        • May 2008
        • 6

        #4
        Originally posted by Plater
        Does your pocket PC have access to the HttpWebRequest object?
        Thanx for reply. Till now i have used emulator for pocket pc and it has c#.net 2.0. I inclued the web directory in it. I wrote code to create web request object and create connection with any url like www.google.com. It was just a trial code.But it does not get connect to that. I would have sent you the code but my pc right now has no .net installed. I will tell you as soon as possible. If you know the correct code please let me know that.

        Comment

        • gaurierram
          New Member
          • May 2008
          • 6

          #5
          Originally posted by pootle
          Hi,

          I don't know if it is correct for the compact framework (I have worked with it), but I used the following resource when I was playing around with this:
          http://www.example-code.com/csharp/http.asp

          Regards.
          Thanx for reply. I am checking out the site.

          Comment

          • gaurierram
            New Member
            • May 2008
            • 6

            #6
            Originally posted by Plater
            Does your pocket PC have access to the HttpWebRequest object?
            I hav added the web directory required for HttpWebRequest.
            Can u please send the code for sending data from device application (C#.net 2.0) on 1 deskop to another desktop having windows application (c#.net 2.0) as soon as possible. Applications are not built in ASP.net. Is there any other way to send data except http request??

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              Well you can just use regular Sockets. Then you can define your own messaging protocal.

              Comment

              Working...