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.

SessionID mit Perl auslesen

Empfohlene Antworten

Veröffentlicht

Moin!

Ich möchte mit Perl eine SessionID eines Servers abfragen und als Variable speichern.

Die SessionID erhalte ich durch den Aufruf einer URL auf dem Server. Nun möchte ich diese URL durch ein lokales Perlscript aufrufen und die SessionID, die zurückgegeben wird, in einer Variable speichern. Hat dazu jemand eine Idee?

hi

wenn ich dich richtig verstanden habe willst du mit PERL eine http anfrage auf ein script (php oder cgi) machen das dir dann die session id ausgibt?!?! oder

dazu kann man in PERL das LWP modul benutzen

sieht so aus:

require LWP::UserAgent;

$ua = LWP::UserAgent->new;

$request = HTTP::Request->new('GET', 'http://dein.server.de/session_script.php');

$response = $ua->request($request);

print $repsone->as_string();

vielleicht hilfts dir ja

Das könnte klappen, wie ich das so sehe. :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.