
Curl を使用してポート 8080 の URL から HTTP 応答を取得しようとしました。
ブラウザに URL を入力し、プロキシ (ここでは ZAP) を使用して応答を検査すると、すべて正常です => コード 200。
curl を次のように使用すると:
curl -b "クッキー名=クッキー値"http://url:8080/some_directory
次のような返答が返ってきました:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://url:8080/some_directory">here</a>.</p>
<hr>
<address>Apache/2.4.9 (Win32) PHP/5.5.12 Server at some_ip Port 8080</address>
</body></html>
サーバーから異なる応答が返されるのはなぜですか?
追伸:私がアクセスしているページは、ウェブサイト上のユーザーとして識別される必要があります