On Fri, Jun 28, 2002 at 10:44:11AM +0200, Balazs Scheidler wrote:
On Fri, Jun 28, 2002 at 10:32:55AM +0200, Kosa Attila wrote:
Hello!
Http: * limitálható chunk méret (ld. Apache hiba)
Erre tudnatok mutatni egy peldat?
a chunk meret korlatozas illetve a letoltheto fileok korlatozasa teljesen mas teszta. chunkokat akkor hasznal egy webszerver, ha nem tudja elore, hogy milyen meretu lesz a valasza, ezert nem tudja beleirni a Content-Length fejlecbe, mivel az az adatresz elott van. Ilyenkor kb igy nez ki egy keres:
Koszonom a magyarazatot. Egy peldat is, please :)
Amit te szeretnel az leginkabb URL szuressel megvalosithato:
class LimitedHttpProxy(HttpProxyURIFilter): matcher=RegexpFileMatcher('/etc/zorp/http.black', '/etc/zorp/http.white')
Igy probaltam: class IDHttp(HttpProxyURIFilter): def config(self): HttpProxyURIFilter.config(self) self.transparent_mode = 1 matcher=RegexpFileMatcher('/etc/zorp/http.black', '/etc/zorp/http.white') A http.black tartalma: .*exe A http.white tartalma: ^http://www\.shinwa\.hu/linux/.*exe$ Es a http://www.shinwa.hu/kell.exe fajlt megis le tudom tolteni. Persze ujra is inditottam :) Mit nem csinaltam jol? -- Udvozlettel Zsiga