Il 10/09/14 11:18, Niphlod ha scritto: > too much code will kill you. Start simple, and go from there onwards. > | > > deftest(): > url ='http://creativity103.com/collections/Landscape/golf_course.jpg' > r =requests.get(url) > ifr.status_code ==200: > newheaders =r.headers > meaningful > =['Content-Length','Content-Type','Date','Expires','Last-Modified'] > fork inmeaningful: > ifk innewheaders: > response.headers[k]=newheaders[k] > returnr.content > raiseHTTP(404) > | ok, the solution seams to stay in using (e.g. returning) the more generic attribute "content" of the requests object... my problem now seams to be the load that can be generated on a single controller by a solution like that.
I need to proxy an external application but what happens is that the first page loading stops at a certain point of the html header, I suspect after too mutch requests to the same controller because every requirement (like css, js, images and so on) for whom is specified a relative path are requested to my proxy controller. Is it possible? How can I resolve it? Thank you Cheers Manuele -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.