cgicc-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cgicc-help] fPostData in CgiEnvironment.cpp


From: Christopher Kranich
Subject: [Cgicc-help] fPostData in CgiEnvironment.cpp
Date: Thu, 12 Dec 2013 14:08:24 -0600

Dear cgicc team,

I'w writing a RESTful API using cgicc.  The REST API uses both POST and PUT.  The body data is only available in fPostData when the request method is POST.  I can't figure out how to get the body data passed when the request method is PUT.

Would it be an improvement to stuff fPostData with the data passed in a PUT request as well.

Instead of this:
  // line 68 in CgiEnvironment.cpp
  if(stringsAreEqual(fRequestMethod, "post") {

Change it to this:
  // line 68 in CgiEnvironment.cpp
  if(stringsAreEqual(fRequestMethod, "post") || stringsAreEqual(fRequestMethod, "put")) {

Thanks,
Chris Kranich

reply via email to

[Prev in Thread] Current Thread [Next in Thread]