CSS Transitions
- What gives the full path to CGI script?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
script_filename gives the full path to the CGI script, script_name gives the name of the CGI script, server_name gives the server’s hostname or IP address, request_method is the method used to make the request, the most common methods are GET and POST.
- Which of the following gives the path for CGI script?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
path_info provides the path for the CGI script, query_string gives URL-encoded information that is sent with GET method request, remote_addr gives the IP address of the remote host making the request.
- What returns the set cookies in the form of a key?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
http_cookie returns the set cookies in the form of key and value pair, in http_user_agent user-agent request-header field contains information about user agent originating the request. It’s the name of the web browser.
- Which variable defines the data type of the content?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The data type of the content is defined by content_type variable, used when the client is sending attached content to the server, like file upload etc, the length of the query information is defined by content_length, it’s available only for POST requests.
- Which of the following specifies the length of the data being returned?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
content-length: string specifies the length in bytes of the data being returned. The browser uses this value to report the estimated download time for a file. Set-cookie: string set the cookie passed through the string.