Help for this page

Select Code to Download


  1. or download this
            # See RFC 1867, 2183, 2045
            # NB: File content will be loaded into memory should
            # content-disposition parsing fail.
    ...
        $filename ||= ''; # quench uninit variable warning
    
            $filename =~ s/^"([^"]*)"$/$1/;
    
  2. or download this
    my ( $param ) = $unfold =~ m/form-data;\s+name="?([^\";]*)"?/;
          my ( $filename )
           = $unfold =~ m/name="?\Q$param\E"?;\s+filename="?([^\"]*)"?/;
    
  3. or download this
    my $VAR1 = "POST http://localhost/cgi-bin/upload_quotes.pl\nContent-Le
    +ngth: 138\nContent-Type:".
            " multipart/form-data; boundary=xYzZY\n\n--xYzZY\r\nContent-Di
    +sposition: form".
            "-data; name=\"file\"; filename=\"stupid \\\"quoted\\\" filena
    +me.txt\"\r\n-Content:".
            " stupid content\r\n\r\n\r\n--xYzZY--\r\n";
    
  4. or download this
    value := token / quoted-string
    token  :=  1*<any (ASCII) CHAR except SPACE, CTLs,
    ...
                   ; Must be in quoted-string,
                   ; to use within parameter values
    
  5. or download this
    FWS             =       ([*WSP CRLF] 1*WSP) /   ; Folding white space
                            obs-FWS
    ...
     
    quoted-string   =       [CFWS]
                            DQUOTE *([FWS] qcontent) [FWS] DQUOTE