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

 
 

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

patch #7845: HTTP PUT method support

Submitted by:  Yury Knigin <yknigin>
Submitted on:  Fri 07 Sep 2012 01:24:15 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

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 (2kB - text/x-patch - Patch and patched CgiEnvironment.cpp file)
file #26495:  CgiEnvironment.cpp added by yknigin (11kB - 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
  • -unavailable- added by yknigin (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 07 Sep 2012 01:24:15 PM UTCykniginAttached File-=>Added PUT_METHOD_INPUT_DATA.patch, #26494
      Attached File-=>Added CgiEnvironment.cpp, #26495

    Back to the top


    Powered by Savane 3.1-cleanup