forked from vrasneur/icapclient
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi,
Maybe I am not using this correctly, but it seems the encoding of requests is not correct: the terminating chunk (size 0) is not sent.
The client code is the one from the example:
conn = icapclient.ICAPConnection('127.0.0.1')
conn.request('REQMOD', 'eicar.com.txt', service="avscan")
resp = conn.getresponse()My server rejects the request (REQMOD), because it does not receive the 0\r\n that is expected.
Capturing the traffic confirms this (edited to show only the end of the request):
Transfer-Encoding: chunked
44
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
(not the absence of '0\r\n').
If the server tries to read again, nothing is sent.
Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels