Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

hi leute,

ich versuche mich gerade per perl skript auf einer seite einzuloggen. wenn ich die url ($u) im browser eingebe, funktioniert es auch ohne probleme. bei dem unteren skript kriege ich jedoch keinen content ($res->content) zurück und er logt sich auch nicht ein.

weiß einer von euch woran das liegen kann?

gruß attheo


use LWP;

use HTTP::Request;


$name = "xyz";

$pw	  = "zyx";

$u   = "http://xxx/login.php?name=$name&pw=$pw";


$ua  = new LWP::UserAgent;

$url  = new URI::URL($u);

$req = new HTTP::Request("POST", "$url");

$res = $ua -> request($req);


if ($res->is_success){

  print "\nContent:\n", $res->content,"\n";

  print "\nStatus: ", $res->status_line,"\n";

  print "\nBase:\n", $res->base,"\n";

  print "\nAs_String:\n",$res->as_string,"\n";

}

else {

  print $res->error_as_HTML;

}


Proxy?

nicht das ich wüste, warum?

Evtl. könnte das '&' in deinem Link schuld sein. Ersetz es mal durch '\&'.

Falls das nicht hilft: nimm mal noch 'use strict;' auf und definiere alle Variablen mit einem 'my'. Erzeugt Perl dann einen Fehler?

hi,

danke für die tipps, aber das mit dem maskieren hat nichts gebracht..

habs auch mal ohne user und pw versucht und kriege da auch keinen quellcode zurück :confused:

kann man skriptzugriffe mit php abwehren??

oder könnte sonst noch irgendetwas verkehrt sein??

gruß attheo

p.s. ach ja, 'use strict' hab ich auch schon drin und es läuft alles ohne fehler..

noch was: wenn ich $u = "http://google.de" eingebe, dann lüpts..

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.