Moin,
gebe ich folgenden Befehl über den Browser ein
http://meine.Domain.de:80/tmpfs/auto.jpg?usr=USER&pwd=PASSWORD
so wird das snapshot angezeigt.
gebe ich folgenden Befehl über Terminal (putty) ein
curl http://meine.Domain.de:80/tmpfs/auto.jpg?usr=USER&pwd=PASSWORD
so bekomme ich folgende Fehlermeldung:
<html>
<head>
<title>Login</title>
<meta content=„text/html“; charset=„utf-8“ http-equiv=„content-type“>
<META HTTP-EQUIV=„Content-Script-Type“ CONTENT=„text/javascript“>
<META http-equiv=„Pragma“ CONTENT=„no-cache“>
<META HTTP-EQUIV=„Cache-Control“ CONTENT=„no-cache“>
<meta HTTP-EQUIV=„Expires“ CONTENT=„Fri, 26 Jun 2015 11:57:46 GMT“>
</head>
<body>
Error: username or password error,please input again.
</body>
</html>
Wieso funktioniert die user und password Übergabe per Browser aber nicht mit curl?
Der entsprechende snapshot für die IM-4011 funktioniert mit curl und dem Browser.
Gruß Paule
[QUOTE=PaulePa;16360]Moin,
gebe ich folgenden Befehl über den Browser ein
http://meine.Domain.de:80/tmpfs/auto.jpg?usr=USER&pwd=PASSWORD
so wird das snapshot angezeigt.
gebe ich folgenden Befehl über Terminal (putty) ein
curl http://meine.Domain.de:80/tmpfs/auto.jpg?usr=USER&pwd=PASSWORD
so bekomme ich folgende Fehlermeldung:
<html>
<head>
<title>Login</title>
<meta content=„text/html“; charset=„utf-8“ http-equiv=„content-type“>
<META HTTP-EQUIV=„Content-Script-Type“ CONTENT=„text/javascript“>
<META http-equiv=„Pragma“ CONTENT=„no-cache“>
<META HTTP-EQUIV=„Cache-Control“ CONTENT=„no-cache“>
<meta HTTP-EQUIV=„Expires“ CONTENT=„Fri, 26 Jun 2015 11:57:46 GMT“>
</head>
<body>
Error: username or password error,please input again.
</body>
</html>
Wieso funktioniert die user und password Übergabe per Browser aber nicht mit curl?
Der entsprechende snapshot für die IM-4011 funktioniert mit curl und dem Browser.
Gruß Paule[/QUOTE]
Habe die Lösung gefunden:
Die Befehlszeile muss gequotet werden, also so:
curl "http://meine.Domain.de:80/tmpfs/auto.jpg?usr=USER&pwd=PASSWORD"
funktioniert es.