- add third_party src.
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / resources / post-echo.cgi
1 #!/usr/bin/perl -w
2
3 print "Content-type: text/plain\n\n"; 
4
5 if ($ENV{'REQUEST_METHOD'} eq "POST") {
6     read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
7                 || die "Could not get query\n";
8     print $request;
9 } else {
10     print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
11