Using the Spyce request object, we can obtain information sent along with the request. The table below shows some request methods and their return values. Use the form below to post form data via GET or POST.

get:
post:

Method Return value
request.uri() /docs/examples/request.spy
request.uri("path") /docs/examples/request.spy
request.uri("query")
request.method() GET
request.query()
request.get() {}
request.get1() {}
request.post() {}
request.post1() {}
request.getHeader() {'host': 'training.hkcert24.pwnable.hk:28039', 'accept-encoding': 'gzip, br, zstd, deflate', 'accept': '*/*', 'user-agent': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'}
request.env() {'HTTP_REFERER': None, 'SERVER_SOFTWARE': 'spyce/2.1', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': None, 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'CONTENT_LENGTH': None, 'HTTP_ACCEPT_CHARSET': None, 'HTTP_USER_AGENT': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_CONNECTION': None, 'HTTP_COOKIE': None, 'REMOTE_ADDR': '3.141.37.212', 'DOCUMENT_ROOT': '/home/spwnce/www', 'HTTP_HOST': 'training.hkcert24.pwnable.hk:28039', 'REQUEST_URI': '/docs/examples/request.spy', 'HTTP_ACCEPT': '*/*', 'GATEWAY_INTERFACE': 'CGI/1.1', 'REMOTE_PORT': 60681, 'HTTP_ACCEPT_LANGUAGE': None, 'CONTENT_TYPE': None, 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'PATH_INFO': '/docs/examples/request.spy'}
request.filename() /home/spwnce/www/docs/examples/request.spy