|
url (-options1=>1)from url: http://testwd.zag:82/Envs/partsh.sd?23=23 where options:-path_info -> /Envs/partsh.sd -base -> http://example.com:82 defaul http://testwd.zag:82/Envs/partsh.sd?23=23 method - HTTP methodretrun HTTP methodacceptreturn hashref{ 'application/xhtml+xml' => undef, 'application/xml' => undef, 'text/html' => undef }; param - return GET and POST paramsreturn paramsbody - HTTP body file descriptor ( see get-body for get content)Return HTTP body file descriptormy $body; { local $/; my $fd = $request->body; $body = <$fd>; } get-body - HTTP body contentReturn HTTP body textmy $body= $r->get_body; upload - return upload contentprint Dumper $request->upload; For command: curl -i -X POST -H "Content-Type: multipart/form-data"\ -F "data=@UserSettings.txt"\ http://example.org/Upload output: { 'data' => { 'headers' => { 'Content-Type' => 'text/plain', 'Content-Disposition' => 'form-data; name="data"; filename="UserSettings.txt"' }, 'tempname' => '/tmp/txBmaz5Bpf.txt', 'size' => 6704, 'filename' => 'UserSettings.txt', 'name' => 'data' } }; set_header$cv->set_header("Content-Type" => 'text/html; charset=utf-8') print_headers [ header1=>value, ...] Method for output headers get_cookiereturn hashref to {key=>value}
Visit the GSP FreeBSD Man Page Interface. |