Zahatski Aliaksandr > WebDAO > WebDAO::CV

Download:
WebDAO-2.25.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.02   Source  

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 method

retrun HTTP method

accept

return hashref

    {
           'application/xhtml+xml' => undef,
           'application/xml' => undef,
           'text/html' => undef
      };

param - return GET and POST params

return params

body - HTTP body file descriptor ( see get-body for get content)

Return HTTP body file descriptor

    my $body;
    {
        local $/;
        my $fd = $request->body;
        $body = <$fd>;
     }

get-body - HTTP body content

Return HTTP body text

    my $body= $r->get_body;

upload - return upload content

        print 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_cookie

return hashref to {key=>value}

syntax highlighting: