Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/post-echo-as-ascii.cgi

Issue 5569001: Merge 72866 - Add send(ArrayBuffer) to XMLHttpRequest per XMLHttpRequest Leve... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/send-array-buffer.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -w
2 2
3 print "Content-type: text/plain\n\n"; 3 print "Content-type: text/plain\n\n";
4 4
5 if ($ENV{'REQUEST_METHOD'} eq "POST") { 5 if ($ENV{'REQUEST_METHOD'} eq "POST") {
6 read(STDIN, $request, $ENV{'CONTENT_LENGTH'}) 6 read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
7 || die "Could not get query\n"; 7 || die "Could not get query\n";
8 my @array = split //, $request; 8 my @array = split //, $request;
9 @array = map(ord, @array); 9 @array = map(ord, @array);
10 print "@array"; 10 print "@array";
11 } else { 11 } else {
12 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n"; 12 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
13 } 13 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/send-array-buffer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698