patchcgicc - Patches: patch #7845, HTTP PUT method support

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #7845: HTTP PUT method support

Submitter:  Yury Knigin <yknigin>
Submitted:  Fri 07 Sep 2012 01:24:15 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Fri 07 Sep 2012 01:24:15 PM UTC, original submission:  

According to a <a href="http://gamma.ethz.ch/admin/cgi/cgicc.html">documentation</a> HTTP PUT method data should be passed to CGI script:

<q>For HTTP POST or PUT queries, the HTTP server communicates information to the CGI script via standard input. The amount of information written to standard input is stored in the CONTENT_LENGTH environment variable.</q>

But there's no handling for PUT method in CgiEnvironment.cpp and cgicc::CgiEnvironment::getPostData returns empty string.

This is simple fix to add HTTP PUT method support.

Yury Knigin <yknigin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #26494:  PUT_METHOD_INPUT_DATA.patch added by yknigin (2KiB - text/x-patch - Patch and patched CgiEnvironment.cpp file)
file #26495:  CgiEnvironment.cpp added by yknigin (11KiB - text/x-c++src - Patch and patched CgiEnvironment.cpp file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by yknigin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-07 sebdiaz StatusNone Done
        Open/ClosedOpen Closed
    2012-09-07 yknigin Attached File- Added PUT_METHOD_INPUT_DATA.patch, #26494
        Attached File- Added CgiEnvironment.cpp, #26495

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code