urllib and linksys router
B Griggs
bgriggs at pobox.com
Sun Jul 2 20:30:36 EDT 2000
Darrell,
Speaking of urllib and the LinkSys router...
http://greenman.dyndns.org/ls_dyndns
I have written a dyndns.org client for the linksys router. Should work on
all Python platforms.
Regards,
Bobby
"Darrell Gallion" <darrell at dorb.com> wrote in message
news:038701bfe3ec$ece104a0$6401a8c0 at home...
> Tried to use urllib to access my linksys router, which requires a
password.
> After much pain, it turns out the router needs to see the request as one
> string.
> Maybe it's a timing thing since urllib sends each line separately.
>
> This works.
>
> def direct():
> s = socket(AF_INET, SOCK_STREAM)
> s.connect("192.168.1.1",80)
>
> msgs=[
> 'GET /Status.htm HTTP/1.0\015\012',
> 'Authorization: Basic xxxxxxxx==\015\012',
> '\015\012',
> ]
> s.send(string.join(msgs,''))
> print s.recv(1024)
> print s.recv(1024)
>
>
>
> --Darrell Gallion
>
>
More information about the Python-list
mailing list