httpmachine icon indicating copy to clipboard operation
httpmachine copied to clipboard

Chunked POST results in parse error

Open RobWelbourn opened this issue 13 years ago • 3 comments

I've been attempting to use Kayak to build a simple event viewer for an event notification service. The client POSTs SOAP messages, but chunks them, rather than setting Content-Length.

So far as I can tell, HttpMachine does not yet support chunked transfer, judging from the comments in the source.

I can however supply WIreshark PCAPs of the offending message, and have created a test case that reliably fails.

RobWelbourn avatar Jul 17 '11 02:07 RobWelbourn

Thanks for opening this. Could you attach a diff or send a pull for the test case?

bvanderveen avatar Jul 18 '11 19:07 bvanderveen

Umm, I'm right at the bottom of the Git learning curve. How exactly does one upload a file?

RobWelbourn avatar Jul 19 '11 14:07 RobWelbourn

Git/GitHub crash course:

The thing to do is fork this repository (using the GitHub fork button at the top of the page). That 'copies' it to your account. Then, clone your forked repo to your local computer. Make a new local branch named something like "chunked_transfer_tests", make your edits, commit the changes locally, then create a new remote branch (with the same name) and push it up to your GitHub account. Then, hit "Pull Request" in GitHub on your HttpMachine clone.

The GitHub help section is your friend. Just off here: http://help.github.com/fork-a-repo/

bvanderveen avatar Jul 19 '11 17:07 bvanderveen