* [gentoo-user-de] [OT] Nochmal python...
@ 2005-09-11 17:07 Jan Kohnert
2005-09-12 4:46 ` Jan Kohnert
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kohnert @ 2005-09-11 17:07 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 712 bytes --]
Hallo ihr,
eine Frage zu python hab ich jetzt schon noch:
Kann ich mit dem httplib Modul direkt Authorization erreichen?
Den Umweg über das urllib module will ich mir nämlich eingentlich sparen...
Ich dachte so an:
connect = httplib.HTTPSConnection("$SERVER")
connect.connect.request("GET", "$DATEI", "Authorization: Basic reallm")
answer = connect.getresponse()
print answer.status
reallm ist natürlich base64-endcoded $USER:$PASSWORD
Funktioniert so aber nicht. Ich krieg ein 401 und Authentifizierung findet
nicht wirklich statt.
Kann mir da jemand auf die Sprünge helfen?
MfG Jan
--
OpenPGP Public-Key Fingerprint:
0E9B 4052 C661 5018 93C3 4E46 651A 7A28 4028 FF7A
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user-de] [OT] Nochmal python...
2005-09-11 17:07 [gentoo-user-de] [OT] Nochmal python Jan Kohnert
@ 2005-09-12 4:46 ` Jan Kohnert
2005-09-13 5:11 ` [gentoo-user-de] [OT] Nochmal python... [SOLVED] Jan Kohnert
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kohnert @ 2005-09-12 4:46 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
Jan Kohnert schrieb:
> connect.connect.request("GET", "$DATEI", "Authorization: Basic reallm")
^^^^^^^^
Das zweite connect fällt natürlich weg, nur typo... ;)
MfG Jan
--
OpenPGP Public-Key Fingerprint:
0E9B 4052 C661 5018 93C3 4E46 651A 7A28 4028 FF7A
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user-de] [OT] Nochmal python... [SOLVED]
2005-09-12 4:46 ` Jan Kohnert
@ 2005-09-13 5:11 ` Jan Kohnert
0 siblings, 0 replies; 3+ messages in thread
From: Jan Kohnert @ 2005-09-13 5:11 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
Jan Kohnert schrieb:
Führe ich hier eigentlich eine Alleinunterhaltung? ;)
Falls es jemanden interessiert und ansonsten JFTR:
Die Lösung steht auf [1].
MfG Jan
[1] http://www.agfa.com/w3c/2002/02/thesis/Python/N3Parser/N3Http.py
--
OpenPGP Public-Key Fingerprint:
0E9B 4052 C661 5018 93C3 4E46 651A 7A28 4028 FF7A
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-13 5:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-11 17:07 [gentoo-user-de] [OT] Nochmal python Jan Kohnert
2005-09-12 4:46 ` Jan Kohnert
2005-09-13 5:11 ` [gentoo-user-de] [OT] Nochmal python... [SOLVED] Jan Kohnert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox