|
-
October 1st, 2014, 08:13 PM
#31
Re: How do I receive POST data in a C++ program
 Originally Posted by OReubens
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
-
October 2nd, 2014, 02:43 PM
#32
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
-
October 2nd, 2014, 03:34 PM
#33
Re: How do I receive POST data in a C++ program
 Originally Posted by Igor Vartanov
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.
-
October 3rd, 2014, 03:36 PM
#34
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
-
October 3rd, 2014, 04:57 PM
#35
Re: How do I receive POST data in a C++ program
Agreed, sometimes we are forced to deal with less than ideal requirements.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|