I have tracked the problem down and I have attached the changes. I have only tested these changes on Fedora Core 7, but they should work for other Linux distros.
The problem is that the code is treating the HTTP headers as case sensitive by using the strstr() and strncmp() for the field-names. JAVA is sending out the HTTP request with the string "Content-length: " whereas the code in http_request.c is using strstr("Content-Length: "). Therefore the code will never find the content length and fails to parse the HTTP request. My change is to use strcasestr() and strncasecmp(). I have attached the diff and the new spec file. Bruce On Oct 30, 2007 1:32 PM, Bruce Keats <[EMAIL PROTECTED]> wrote: > Hi, > > I was trying OCSPD with various clients and OCSPD seems to work well with > openssl based clients. The setup I have is running under Fedora Core 7. I > have a JAVA client (apache-tomcat) generating OCSP requests, however the > requests get the following error "ERROR::No Content-Length in REQ Headers". > I captured the conversation between the JAVA and OCSPD using tcpdump and the > HTTP requests are contained in two separate TCP packets. When I capture the > conversation between a openssl client and OCSPD, the HTTP requests are > contained in a single TCP packet. > > I had a look at ocsp_request.c line 186 and it looks like the code does not > handle HTTP requests that span multiple TCP packets. > > Has anyone else encountered the same problem? Are there plans to fix this > problem? > > Are there plans to support HTTPS at some point? > > Thanks, > Bruce >
ocspd-http
Description: Binary data
openca-ocspd.spec
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Openca-Users mailing list Openca-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openca-users