you talk about the "closeSequence" byte array or httpMessage.append
(getHeaderString() + "\n");
 that became httpMessage.append(getHeaderString() + "\n\n");
??

good morning sean

---------- Initial Header -----------
 
From    : "Sean Reilly" <[EMAIL PROTECTED]>
To      : "Tomcat Developers List" <[EMAIL PROTECTED]>
Cc      : 
Date    : Tue, 25 Mar 2003 16:21:12 -0600
Subject : RE: Http version error

> According to this code, you'll need another line break after the final
 header.
> 
> > -----Original Message-----
> > From: Claudio Bisegni [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 25, 2003 3:57 PM
> > To: Tomcat Developers List
> > Subject: Re: Http version error
> > 
> > 
> > i have tryed now with one space tommy give me the erro BAd request
> > 
> > thia is my code for create the http request
> > 
> > "
> >      httpMessage.append(requestMetod);
> >      httpMessage.append(" /" + 
> > wsda.swclient.WsdaClient.confDelegator.getServerMediatorClass() + 
> > ";jsessionid="+ (sessionID==null?" ":sessionID + " ") +"HTTP/1.1
\n");
> >      httpMessage.append(getHeaderString() + "\n");
> > 
> >      byte[] headerReqbuf = httpMessage.toString().getBytes();
> > 
> >      // scrivo l'header nel buffer
> >      bas.writeBytes(headerReqbuf, 0 , headerReqbuf.length);
> > 
> >      // scrivo il dato d inviare nel buffer
> >      bas.writeBytes(data, 0, data.length);
> >      bas.writeBytes(closeSequence, 0, closeSequence.length);
> > 
> > getHeaderMessage is:
> > 
> >    private String getHeaderString() {
> >      StringBuffer result = new StringBuffer();
> >      Vector keys = headerhash.getKeys();
> >      for(int idx = 0; idx < keys.size(); idx++) {
> >        result.append(keys.elementAt(idx)+": 
> > "+headerhash.get(keys.elementAt(idx)));
> >        result.append("\n");
> >      }
> >      return result.toString();
> >    }
> > 
> > "
> > note close sequence is an array of tre byte of "\n"
> > 
> > On Tuesday, March 25, 2003, at 10:39 PM, Sean Reilly wrote:
> > 
> > > Well, the HTTP/1.1 spec 
> > (http://www.w3.org/Protocols/rfc2068/rfc2068, 
> > > Section 5.1)
> > > specifies that a single space should be used.  Since one of the 
> > > differences between tomcat 3 and tomcat 4.1 is that a new HTTP 
> > > protocol handler (Coyote) was written, it could be the problem.
> > >
> > >> -----Original Message-----
> > >> From: Claudio Bisegni [mailto:[EMAIL PROTECTED]
> > >> Sent: Tuesday, March 25, 2003 3:33 PM
> > >> To: Tomcat Developers List
> > >> Subject: Re: Http version error
> > >>
> > >>
> > >> yes there are tow space you think this is the problem???
> > >> On Tuesday, March 25, 2003, at 10:26 PM, Sean Reilly wrote:
> > >>
> > >>>
> > >>>
> > >>
> > >>
> > >> 
> > --------------------------------------------------------------------
-
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: tomcat-dev-
[EMAIL PROTECTED]
> > >>
> > >>
> > >
> > > 
> > --------------------------------------------------------------------
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: tomcat-dev-
[EMAIL PROTECTED]
> > >
> > 
> > 
> > --------------------------------------------------------------------
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to