Quantcast
Viewing all articles
Browse latest Browse all 10

Random HTTP Bug and Solution

I just spent the last fifteen minutes trying to figure out why my HTTP GET request was hanging on input. I had had this problem a few days ago and solved it somehow, but I completely forgot how. It turns out, I just forgot to put a blank line at the end of my GET request. Stupid. (At least now I know how to fix the mistake next time, even if I forget, because I’ve written it down here!!! =D)

Also, in searching for code to deal with chunked responses, I came across Apache HttpComponents. I knew something like this existed by Apache but I didn’t realize that it took care of so much for you. Now I’m wondering why the Citrus Framework doesn’t use this to handle HTTP requests. Right now, it uses mostly Spring to handle a fair amount of the configuration and message building, but it doesn’t yet handle chunked responses, at least not that I’m aware of. Now, to code it manually or use massive amounts of code already written? That’s obvious. I should talk with the Citrus developer, get onboard, and see if he has a preference first though, since these changes to the Citrus source would be useful to others too.


Viewing all articles
Browse latest Browse all 10

Trending Articles