Sign in
webkit
/
WebKit
/
0f9dda3eb5e8bee1224032800f3b156cd5ce812d
/
.
/
LayoutTests
/
http
/
tests
/
xmlhttprequest
/
resources
/
get_method.py
blob: 5ecfbd200e2dec0fd71b98a0a25357b1f1878d90 [
file
] [
log
] [
blame
]
#!/usr/bin/env python3
import
os
import
sys
method
=
os
.
environ
.
get
(
'REQUEST_METHOD'
,
'GET'
)
sys
.
stdout
.
write
(
'Content-Type: text/html\r\n'
'REQMETHOD: {}\r\n'
'\r\n'
.
format
(
method
)
)
if
method
!=
'HEAD'
:
print
(
method
)