|
|
|
Some CNA CLI commands return HTML by default instead of plain text. This will be noted in the Content-Type header in the response.
Because the request specified HTTP 1.0, the body of the response is not chunk encoded. Had the request specified HTTP 1.1, the response body might have (depending on length) contained chunk delimiters--a blank line followed by a hexadecimal number indicating length of the next chunk-- interspersed with the HTML.
POST /exec HTTP/1.0 Authorization: Basic dXNlcjpwYXNz Content-Length: 2 ls
HTTP/1.1 200 OK Content-Type: text/html <html> <table> <column align="left" type="date" format="MM/dd/yyyy" width="10" /> <column align="left" type="string" width="8" /> <column align="right" type="integer" width="9" /> <column align="right" type="integer" width="6" /> <column align="left" type="string" width="40" /> <tr> <th>Date</th> <th>Time</th> <th>Size</th> <th>Lines</th> <th>Name</th> </tr> <tr> <td>02/04/2002</td> <td>23:11:38</td> <td>2247</td> <td>96</td> <td>myrunning.cfg</td> </tr> <tr> <td>10/26/2001</td> <td>02:16:46</td> <td>28</td> <td>1</td> <td>test.cfg</td> </tr> <tr> <td>02/06/2002</td> <td>22:42:37</td> <td>167946902</td> <td>na</td> <td>release.img</td> </tr> </table> </html>
|
|
|