|
|
|
Some commands, such as the show version command, default to plain text output. For these commands, you will receive plain text regardless of what you specify with the Accept request header. Always check the Content-Type response header.
The following example specifies text/html in the request, but the response specifies text/plain:
POST /exec HTTP/1.0 Authorization: Basic dXNlcjpwYXNz Accept: text/html Content-Length: 12 show version
HTTP/1.1 200 OK Content-type: text/plain PathControl 2.1.0 Development Release - Not a stable handoff Build Number - 1026 Build created : Tue Feb 19 05:58:32 PST 2002 Build instance : 0 Build type : dev CVS branch : trunk Hard Disk files : yes Comments : uptime 13 hours, 12 minutes management 0 MASTER 776892 KB Mem Intel Pent... engine 1 A00158 971476 KB Mem Intel Pent... Intel Pent... ustat (ssl) 3 A00007 257812 KB Mem Intel Pent... reporting 10 A00123 971580 KB Mem Intel Pent... ustat (ssl) 12 A00070 257812 KB Mem Intel Pent...
|
|
|