{"action":"created","issue":{"url":"https://api.github.com/repos/google/gopacket/issues/112","labels_url":"https://api.github.com/repos/google/gopacket/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/google/gopacket/issues/112/comments","events_url":"https://api.github.com/repos/google/gopacket/issues/112/events","html_url":"https://github.com/google/gopacket/issues/112","id":103555259,"number":112,"title":"Handling chunked HTTP responses","user":{"login":"vijayendrabvs","id":1093825,"avatar_url":"https://avatars.githubusercontent.com/u/1093825?v=3","gravatar_id":"","url":"https://api.github.com/users/vijayendrabvs","html_url":"https://github.com/vijayendrabvs","followers_url":"https://api.github.com/users/vijayendrabvs/followers","following_url":"https://api.github.com/users/vijayendrabvs/following{/other_user}","gists_url":"https://api.github.com/users/vijayendrabvs/gists{/gist_id}","starred_url":"https://api.github.com/users/vijayendrabvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijayendrabvs/subscriptions","organizations_url":"https://api.github.com/users/vijayendrabvs/orgs","repos_url":"https://api.github.com/users/vijayendrabvs/repos","events_url":"https://api.github.com/users/vijayendrabvs/events{/privacy}","received_events_url":"https://api.github.com/users/vijayendrabvs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-27T17:17:42Z","updated_at":"2015-09-02T00:03:37Z","closed_at":null,"body":"Hi,\r\n\r\nIt looks like the http assembly in gopkt is reading in an EOF at the end of the first chunk of a chunked HTTP response, and the TCP assembly underneath never passes on the rest of the chunks to the http assembler. Is there a way to be able to read the rest of the chunked HTTP response and assemble the complete HTTP response?\r\n\r\nThanks,\r\nRegards,\r\nVijay"},"comment":{"url":"https://api.github.com/repos/google/gopacket/issues/comments/136897089","html_url":"https://github.com/google/gopacket/issues/112#issuecomment-136897089","issue_url":"https://api.github.com/repos/google/gopacket/issues/112","id":136897089,"user":{"login":"vijayendrabvs","id":1093825,"avatar_url":"https://avatars.githubusercontent.com/u/1093825?v=3","gravatar_id":"","url":"https://api.github.com/users/vijayendrabvs","html_url":"https://github.com/vijayendrabvs","followers_url":"https://api.github.com/users/vijayendrabvs/followers","following_url":"https://api.github.com/users/vijayendrabvs/following{/other_user}","gists_url":"https://api.github.com/users/vijayendrabvs/gists{/gist_id}","starred_url":"https://api.github.com/users/vijayendrabvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijayendrabvs/subscriptions","organizations_url":"https://api.github.com/users/vijayendrabvs/orgs","repos_url":"https://api.github.com/users/vijayendrabvs/repos","events_url":"https://api.github.com/users/vijayendrabvs/events{/privacy}","received_events_url":"https://api.github.com/users/vijayendrabvs/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T00:03:36Z","updated_at":"2015-09-02T00:03:36Z","body":"@sentryo : I ran a modified version of the http assembly program that comes with gopacket, with a pcap file as you suggested, and interestingly, it works with it. However, the same program does not work in the same way when listening on an interface. This should not be the case, should it? I am attaching both the sample pcap file (which I generated using tcpdump -ni <interface> tcp -w chunked.pcap` ) and the gopkt program to capture and assemble the http streams, for your reference.\r\n\r\nHere's how I run the program on the chunked.pcap file -\r\n\r\n`go run ./main.go -r ./chunked.pcap -f tcp`\r\n\r\nTo replicate this, you could run a web server that returns chunked HTTP responses, issue a curl to it, while running main.go on it.\r\n\r\nPS - Github doesn't let me upload the files with their default names, so I've named them both .png files. Please rename main.png to main.go and chunked.png to chunked.pcap.\r\n![chunked](https://cloud.githubusercontent.com/assets/1093825/9620061/5ea8ed12-50cb-11e5-8130-07d2bfb88824.png)\r\n![main](https://cloud.githubusercontent.com/assets/1093825/9620062/5ea98614-50cb-11e5-9d7b-6a616cef780a.png)\r\n\r\n\r\n\r\n"}}