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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/resources/post-echo.pl

Issue 2739323003: DevTools protocol interception, blocking & modification of requests (Closed)
Patch Set: Add a comment Created 3 years, 6 months 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
OLDNEW
(Empty)
1 #!/usr/bin/perl
2 print "Content-type: text/plain\r\n\r\n";
3 if ($ENV{'REQUEST_METHOD'} eq "POST") {
4 read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
5 || die "Could not get query\n";
6 print $request;
7 } else {
8 print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
9 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698