Changeset 14
- Timestamp:
- 11/23/12 14:44:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/bletchley-http2py
r4 r14 79 79 80 80 host = 'TODO' 81 port = 081 port = 80 82 82 use_ssl = False 83 83 … … 120 120 ''' % (repr(host),repr(port),repr(use_ssl))) 121 121 122 chunked_body = '\n '.join([repr(body[i:i+40]) for i in range(0,len(body),40)]) 123 122 124 print(''' 123 125 def sendRequest(connection): 124 126 method = %s 125 127 path = %s 126 body = %s127 128 body = (%s) 129 128 130 connection.putrequest(method, path) 129 ''' % (repr(method), repr(path), repr(body)))131 ''' % (repr(method), repr(path), chunked_body)) 130 132 131 133 for name,values in headers:
Note: See TracChangeset
for help on using the changeset viewer.