dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35

Thread: How do I receive POST data in a C++ program

  1. #31
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,990

    Re: How do I receive POST data in a C++ program

    Quote Originally Posted by OReubens View Post
    The above does NOT require the presense of a separate web server application. (I think the WCF solution Arjay posted requires IIS, but I'm not sure, I'm not that into C#) If there's already a web server running, then there might be even simpler solutions by writing an extention/script for that instead.
    WCF doesn't require IIS.

    WCF can be hosted in multiple hosts:
    IIS
    Console app (.net)
    Windows Form app (.net)
    Windows Presentation app (.net)
    Windows Service (.net)
    Windows Activation Service

  2. #32
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,600

    Re: How do I receive POST data in a C++ program

    The thing with WCF is that it's about exposing full-fleged web service interface, but not just HTTP POST handler. Which is alot different situation for data posting side.
    Best regards,
    Igor

  3. #33
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,990

    Re: How do I receive POST data in a C++ program

    Quote Originally Posted by Igor Vartanov View Post
    The thing with WCF is that it's about exposing full-fleged web service interface, but not just HTTP POST handler. Which is alot different situation for data posting side.
    Personally, I would prefer to code up something that is more generic (e.g. WCF) rather than coding up something very specific like a POST handler.

    Although that maybe all that is needed *today*, we all know that requirements change - especially when dealing with 3rd parties.

    There is definitely more than one way to skin a cat, but I generally will pick off-the-shelf solutions when I can.

  4. #34
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,600

    Re: How do I receive POST data in a C++ program

    Talking about personal preferences, I would prefer to discuss requirements and architectural approaches with customers and get into details. But in reality sometimes you find your customers being uncooperative to the level you hardly can explain, or even playing real freaks unwilling to say a word in addition to the couple of lines they call a requirement. Humans are so much humans..

    As for POST, I participated in a project where cloud API was built around POST + JSON, and that combination was really generic and flexible.
    Best regards,
    Igor

  5. #35
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,990

    Re: How do I receive POST data in a C++ program

    Agreed, sometimes we are forced to deal with less than ideal requirements.

Page 3 of 3 FirstFirst 123

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)