connect to website providing login & pwd

-:fs fs at floSoft.net
Sun Sep 30 16:04:38 EDT 2001


"Martin von Loewis" <loewis at informatik.hu-berlin.de> schrieb im Newsbeitrag
news:j4g0943bh2.fsf at informatik.hu-berlin.de...
> "\(-:fs\)" <fs at floSoft.net> writes:
> In your case, it appears that this scheme is *not* used. Instead, some
> form mechanism is used. Most likely, the server will send back a
> Cookie, which the client then has to resubmit in later requests.

thank for any ideas until now

what i found out

1.) the whole thing works *without* cookies
     (i blocked them, with same results)

2.) the shortest way to call the correct page is this

V  V  V  V  V  V  V  V  V  V  V  V  V  V  V  V  V  V

import httplib

host = 'accounting.ewave.at'

h = httplib.HTTP()
h.connect(host)

h.putrequest('GET', '/accounting.cgi')
h.endheaders()

status, reason, headers = h.getreply()

print status
print reason
print headers

print h.getfile().read()

V  V  V  V  V  V  V  V  V  V  V  V  V  V  V  V  V  V

the result is of course "no login-name provided"

everybody is invited to provide some login with pwd
to change the result to "wrong username" or "wrong password"

the exact (german) result you can check out easily by typing somthing into
the form at accounting.ewave.at

thanks for spending your time

fritz
(-:fs)







More information about the Python-list mailing list