0

I am writing a Python script for network (using Mininet) to simulate server-client TCP transmission. My question is: Can I customize SimpleHTTPServer so that I can specify the size of web page that will be transmitted to the client?

A_D
  • 595
  • 1
  • 5
  • 12
  • what do you mean "size of web page" ? size in bytes ? different page for PC and for mobile device ? You can use `random` to send different page or url with parameters - ie. `http://example.com/?size=small` or normally create different html files `http://example.com/small.html`. – furas Dec 14 '16 at 14:44
  • Possible duplicate of [How to customize the page sent by SimpleHTTPServer?](http://stackoverflow.com/questions/41637002/how-to-customize-the-page-sent-by-simplehttpserver) – Josh Lee Jan 13 '17 at 14:51

0 Answers0