[Twisted-Python] URL length limits in twisted
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? thanks, Lenny ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
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
participants (2)
-
Lenny G Arbage
-
Raúl Alexis Betancor Santana