… | |
… | |
59 | response headers, the "pseudo-headers" "HTTPVersion", "Status" and |
59 | response headers, the "pseudo-headers" "HTTPVersion", "Status" and |
60 | "Reason" contain the three parts of the HTTP Status-Line of the same |
60 | "Reason" contain the three parts of the HTTP Status-Line of the same |
61 | name. The pseudo-header "URL" contains the original URL (which can |
61 | name. The pseudo-header "URL" contains the original URL (which can |
62 | differ from the requested URL when following redirects). |
62 | differ from the requested URL when following redirects). |
63 | |
63 | |
64 | If the server sends a header multiple lines, then their contents |
64 | If the server sends a header multiple times, then their contents |
65 | will be joined together with "\x00". |
65 | will be joined together with a comma (","), as per the HTTP spec. |
66 | |
66 | |
67 | If an internal error occurs, such as not being able to resolve a |
67 | If an internal error occurs, such as not being able to resolve a |
68 | hostname, then $data will be "undef", "$headers->{Status}" will be |
68 | hostname, then $data will be "undef", "$headers->{Status}" will be |
69 | 599 and the "Reason" pseudo-header will contain an error message. |
69 | 599 and the "Reason" pseudo-header will contain an error message. |
70 | |
70 | |