[Twisted-Python] URL length limits in twisted

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Wed Aug 24 16:15:38 MDT 2005


El Miércoles, 24 de Agosto de 2005 23:57, Lenny G Arbage escribió:
> I'm noticing silent failures using HTTPClientFactory
> with len(url) >= 16400.  The factory's deferred object
> immediately calls its associated callBack() method
> without sending any data  (the server is likewise
> written with twisted python, but it doesn't appear to
> ever receive data).  The errorBack() doesn't fire,
> either.
>
> A url with len <= 16398 works just fine, firing the
> callback /after/ sending the data.
>
> According to RFC 2616, arbitrary length URLs are
> allowed by HTTP, but I understand that there are
> practical limitations in many implementations.  Is the
> 16400 url-length ceiling a known limitation in
> twisted, or am I banging up against something else?

Wooooooohhh!! .. more than 16400 chars for an URL !! ..., thats more than 16K 
request send to the server ...
Maybe I'm wrong but, are you using the GET method ?, if so change it and use 
the PUT one and try again. As far as I know most of http protocol 
implementations have that kind of limitations on the GET method, but I could 
be wrong, I dont know enought about twisted to tell you.

Best regards




More information about the Twisted-Python mailing list