2009-12-07 Fumitoshi Ukai <ukai@chromium.org>
[WebKit-https.git] / LayoutTests / websocket / tests / frame-length-skip_wsh.py
1 def web_socket_do_extra_handshake(request):
2   pass
3
4 def web_socket_transfer_data(request):
5   msg = "\0hello\xff"
6   msg += "\x80\x81\x01"   # skip 1*128+1 bytes.
7   msg += "\x01"
8   msg += "\0should be skipped" + (" " * 109) + "\xff"
9   msg += "\0world\xff"
10   request.connection.write(msg)
11   print msg