cURL: Java ウェブサイトが読み込まれません。

cURL: Java ウェブサイトが読み込まれません。

Webブラウザ(GUI)を使用すると、問題なくデバイスの設定ページにアクセスできます。
しかし、cURLを使用するとうまくいかないようです。

luis@Fresoncio:~$ curl http://192.168.1.232
<html><head>
<script src="jsMain.js"> </script>
<title>DWL-2100AP</title></head>

<script language='JavaScript'>
document.cookie = 'RpWebID=57562c4e';
</script>
<script language='JavaScript'>
function JumpToHmain(){location.replace('/html/HomeWizard.html');}window.setTimeout('JumpToHmain()',1);</script>

クッキーを受け入れると、同じ結果が表示されます。

luis@Fresoncio:~$ curl http://192.168.1.232 -c cookie.txt
<html><head>
<script src="jsMain.js"> </script>
<title>DWL-2100AP</title></head>

<script language='JavaScript'>
document.cookie = 'RpWebID=57562c5c';
</script>
<script language='JavaScript'>
function JumpToHmain(){location.replace('/html/HomeWizard.html');}window.setTimeout('JumpToHmain()',1);</script>

ただし、初期設定ページに移動しようとすると/html/HomeWizard.html(今回は必要に応じてユーザー名とパスワードを送信しようとしています):

luis@Fresoncio:~$ curl -i -H 'Accept:application/json' -H 'Authorization:Basic admin:MyEditedPassword' http://192.168.1.232/html/HomeWizard.html
HTTP/1.1 404 Not Found
Content-Type: text/html
Transfer-Encoding: chunked
Server: Allegro-Software-RomPager/4.06
Connection: close

<html>
<head>
<title>Object Not Found</title></head><body>
<h1>Object Not Found</h1>The requested URL '/html/HomeWizard.html' was not found on the RomPager server.<p>Return to <A HREF="">last page</A><p>

この部分のテストはありませんAccept/application/json

luis@Fresoncio:~$ curl -i -H 'Authorization:Basic admin:MyEditedPassword' http://192.168.1.232/html/HomeWizard.html
HTTP/1.1 404 Not Found
Content-Type: text/html
Transfer-Encoding: chunked
Server: Allegro-Software-RomPager/4.06
Connection: close

<html>
<head>
<title>Object Not Found</title></head><body>
<h1>Object Not Found</h1>The requested URL '/html/HomeWizard.html' was not found on the RomPager server.<p>Return to <A HREF="">last page</A><p>
</body></html>

Firefoxナビゲーションを介してGUIにアクセスすることはまったく問題ではありませんhttp://192.168.1.232/html/HomeWizard.html(もちろん、資格情報を入力した後)。

どうなりますか?どうすれば解決できますか?

より多くのデータ:

  • このウェブサイトはJavaを使用しています。少なくとも私の考えはそうです。

ベストアンサー1

おすすめ記事