Web >> Development >> CGI >> What are the cgi (common gateway interface) request methods and their characteristics



1.  METHOD=GET
    QUERY_STRING=name1=val1_pt1 val1_pt2&name2=val2_pt1 val2_pt2...
    & separates between different name value pairs
    = separates names from values
      separates words within values

2.  METHOD=POST
    CONTENT_LENGTH gives length whole query string   
    query string can be obtained by reading CONTENT_LENGTH
    characters from STDIN