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 / C++ / MFC
  4. How to receive HTTP request? [modified]

How to receive HTTP request? [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++xmljsontutorialquestion
11 Posts 4 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.
  • S suzuuu

    Hi Folk, I wanna create an application which should be run as a windows service. Application should receive HTTP request from the third party application. HTTP request hold xml data, i wanna parsing that and store it into local file. For above the constrains what type of application should i create using win32 or mfc?. Plz.. get me out from this confession... thanks in advance suzuuu

    modified on Thursday, April 22, 2010 1:32 AM

    I Offline
    I Offline
    Intersect
    wrote on last edited by
    #2

    Nor the Win32 or MFC, I better suggests you to use C#.net. It will be much easier to do that with C#.net. Also you can use MFC, if you want to do it.

    S 1 Reply Last reply
    0
    • I Intersect

      Nor the Win32 or MFC, I better suggests you to use C#.net. It will be much easier to do that with C#.net. Also you can use MFC, if you want to do it.

      S Offline
      S Offline
      suzuuu
      wrote on last edited by
      #3

      Okay... should i use socket to receive http request?

      1 Reply Last reply
      0
      • S suzuuu

        Hi Folk, I wanna create an application which should be run as a windows service. Application should receive HTTP request from the third party application. HTTP request hold xml data, i wanna parsing that and store it into local file. For above the constrains what type of application should i create using win32 or mfc?. Plz.. get me out from this confession... thanks in advance suzuuu

        modified on Thursday, April 22, 2010 1:32 AM

        M Offline
        M Offline
        MANISH RASTOGI
        wrote on last edited by
        #4

        Are you want to create your own http server?

        S 1 Reply Last reply
        0
        • M MANISH RASTOGI

          Are you want to create your own http server?

          S Offline
          S Offline
          suzuuu
          wrote on last edited by
          #5

          I have no idea about server! But, my need is just receive HTTP request and parse xml then store it into local file. That's all

          M 1 Reply Last reply
          0
          • S suzuuu

            I have no idea about server! But, my need is just receive HTTP request and parse xml then store it into local file. That's all

            M Offline
            M Offline
            MANISH RASTOGI
            wrote on last edited by
            #6

            As I get you want to create server. Simple open a socket and start listening on a specified port. for test open internet explorer. type http://127.0.0.1:5000 5000 is port number on which server is listening request. It is changable but should be same on both server and client. On server read socket.

            S 1 Reply Last reply
            0
            • M MANISH RASTOGI

              As I get you want to create server. Simple open a socket and start listening on a specified port. for test open internet explorer. type http://127.0.0.1:5000 5000 is port number on which server is listening request. It is changable but should be same on both server and client. On server read socket.

              S Offline
              S Offline
              suzuuu
              wrote on last edited by
              #7

              TQ manish... Is there any specific socket for HTTP in windows? OR is there are any specific format to play with HTTP request through socket?

              M 1 Reply Last reply
              0
              • S suzuuu

                TQ manish... Is there any specific socket for HTTP in windows? OR is there are any specific format to play with HTTP request through socket?

                M Offline
                M Offline
                MANISH RASTOGI
                wrote on last edited by
                #8

                There is no specific socket for http.

                S 1 Reply Last reply
                0
                • M MANISH RASTOGI

                  There is no specific socket for http.

                  S Offline
                  S Offline
                  suzuuu
                  wrote on last edited by
                  #9

                  Thank you very much for your reply...

                  1 Reply Last reply
                  0
                  • S suzuuu

                    Hi Folk, I wanna create an application which should be run as a windows service. Application should receive HTTP request from the third party application. HTTP request hold xml data, i wanna parsing that and store it into local file. For above the constrains what type of application should i create using win32 or mfc?. Plz.. get me out from this confession... thanks in advance suzuuu

                    modified on Thursday, April 22, 2010 1:32 AM

                    M Offline
                    M Offline
                    Moak
                    wrote on last edited by
                    #10

                    Running a local web server is not that hard, there are many libraries out there... to name a few: Webserver - Alhelm C++ Socket library[^] CSocketServerHttp - PichatCore C++ library[^] Webio - An embedded web server (Codeproject)[^] A C++ Embedded Web Server (Codeproject)[^] Hope it helps! :)

                    Webchat in Europe :java: Now with 26% more Twitter

                    S 1 Reply Last reply
                    0
                    • M Moak

                      Running a local web server is not that hard, there are many libraries out there... to name a few: Webserver - Alhelm C++ Socket library[^] CSocketServerHttp - PichatCore C++ library[^] Webio - An embedded web server (Codeproject)[^] A C++ Embedded Web Server (Codeproject)[^] Hope it helps! :)

                      Webchat in Europe :java: Now with 26% more Twitter

                      S Offline
                      S Offline
                      suzuuu
                      wrote on last edited by
                      #11

                      thanks again B-)

                      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