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

Submitted by:  Yury Knigin <yknigin>
Submitted on:  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>

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.3