Skip Menu |

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 95828
Status: resolved
Priority: 0/
Queue: CGI-Simple

Owner: MANWAR [...]
Requestors: mgruzdev [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.13

CC: Павел Кудрявцев <pik [...]>
Subject: param ('PUTDATA') returns garbled binary data
Date: Wed, 21 May 2014 15:02:58 +0400
To: bug-Cgi-Simple [...]
From: Maksim Gruzdev <mgruzdev [...]>
Download (untitled) / with headers
text/plain 400b
Hi! We are writing a REST application, While uploading a file (word document) open UPLOADED_FILE, '>upload.docx' or die; binmode UPLOADED_FILE; print UPLOADED_FILE $cgi_simple -> param ('PUTDATA'); close UPLOADED_FILE; binary PUTDATA body is getting corrupt (word wouldn't open such file anymore) PUTDATA parameter is not corrupted with Here is a patch -- Best Regards, Maksim Gruzdev
Download putdata.patch
text/x-diff 1.1k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 109b
Could you also provide a test, please? GitHub repo for pull request:

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to