Имеется шлюз TAU-32M c такой версией программного обеспечения:
Код: Выделить всё
admin@fxs72:/root]uname -a
Linux fxs72 2.6.22.19-4.03.0-c300evm #245 Thu Jun 21 15:06:26 NOVT 2012 armv6l GNU/Linux
[admin@fxs72:/root]cat /version
#2.1.2
[admin@fxs72:/root]
При ответе устройства на запросы по протколу http теряются заголовки ответов на страницах, отдаваемых с 200 кодом.
Например, здесь всё хорошо:
Код: Выделить всё
> curl -v --user Admin:rootpasswd http://10.0.0.173/
* About to connect() to 10.0.0.173 port 80
* Trying 10.0.0.173... connected
* Connected to 10.0.0.173 (10.0.0.173) port 80
* Server auth using Basic with user 'Admin'
> GET / HTTP/1.1
> Authorization: Basic QWRtaW46cm9vdHBhc3N3ZA==
> User-Agent: curl/7.15.5 (i386-pc-solaris2.11) libcurl/7.15.5 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.8
> Host: 10.0.0.173
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Server: Eltex TAU-72
< Date: Thu Jan 7 23:42:48 2010
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="Eltex TAU-32M Rev1"
< Pragma: no-cache
< Cache-Control: no-cache
< Content-Type: text/html
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: Unauthorized</h2>
<p>Access Denied
Unknown User</p></body></html>
* Connection #0 to host 10.0.0.173 left intact
* Closing connection #0
И здесь тоже:
Код: Выделить всё
> curl -v --user admin:rootpasswd http://10.0.0.173/
* About to connect() to 10.0.0.173 port 80
* Trying 10.0.0.173... connected
* Connected to 10.0.0.173 (10.0.0.173) port 80
* Server auth using Basic with user 'admin'
> GET / HTTP/1.1
> Authorization: Basic YWRtaW46cm9vdHBhc3N3ZA==
> User-Agent: curl/7.15.5 (i386-pc-solaris2.11) libcurl/7.15.5 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.8
> Host: 10.0.0.173
> Accept: */*
>
< HTTP/1.0 302 Redirect
< Server: Eltex TAU-72
< Date: Thu Jan 7 23:45:44 2010
< Pragma: no-cache
< Cache-Control: no-cache
< Content-Type: text/html
< Location: http://10.0.0.173//goform/system_info
<html><head></head><body>
This document has moved to a new <a href="http://10.0.0.173//goform/system_info">location</a>.
Please update your documents to reflect the new location.
</body></html>
* Closing connection #0
А вот здесь уже нет:
Код: Выделить всё
> curl -v --user admin:rootpasswd http://10.0.0.173//goform/system_info
* About to connect() to 10.0.0.173 port 80
* Trying 10.0.0.173... connected
* Connected to 10.0.0.173 (10.0.0.173) port 80
* Server auth using Basic with user 'admin'
> GET //goform/system_info HTTP/1.1
> Authorization: Basic YWRtaW46cm9vdHBhc3N3ZA==
> User-Agent: curl/7.15.5 (i386-pc-solaris2.11) libcurl/7.15.5 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.8
> Host: 10.0.0.173
> Accept: */*
>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>TAU-32M.IP Rev1</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<link href="../css/styles.css" rel="stylesheet" type="text/css">
<link href="../css/table_and_navbar.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
....
....
Это такое расширенное толкование стандартов или я что-то делаю не так?
Заранее спасибо за ответ.