×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    9

    pb port 8080 on Tomcat

    Hi,

    I'm deploying an application on series 40 and series 60. The web server is IIS and servlet motor is Tomcat.

    Since on some gateways urls with 8080 doesn't work, I've used ISAPI_redirect to use common http urls.

    But now I have the following pb. In the body of the server response I have the HEAD so my parser doesn't work. The server answer is as follows :

    ------------------------------------------------------------------------------------
    HTTP/1.1 200 OK

    Server: Microsoft-IIS/5.0

    Date: Tue, 13 May 2003 19:12:55 GMT

    Connection: close

    Content-Type: text/plain

    1&toto&toto&toto@toto.com&1&0&05&13&1974&90293&5&8&1&0&0&0&0&1&0&0&0&0&3107488258&0&
    ------------------------------------------------------------------------------------

    And when I was using urls with 8080 I had the following response (which is the good one):

    1&toto&toto&toto@toto.com&1&0&05&13&1974&90293&5&8&1&0&0&0&0&1&0&0&0&0&3107488258&0&
    ------------------------------------------------------------------------------------

    I tried to parse the answer to keep only the second part but the seems to change with the gateways.

    On server Content Type = "text/plain" and I use out.print method
    On client Content Type = "application/x-www-form-urlencoded"

    So please does anybody could tell me how to avoid the Head in the Body of the response.


    PS : I did the tests on real devices (6610 which works in the same way as 7210)

    Thanks in advance ...

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    112
    i would guess that


    HTTP/1.1 200 OK
    Server: Microsoft-IIS/5.0
    Date: Tue, 13 May 2003 19:12:55 GMT
    Connection: close
    Content-Type: text/plain

    comes from your iis.

    so what about just printing another line before you start you dataline?

    like

    DATA:
    1&1&toto&and&so&on


    you will only have to find the 'DATA' string, no matter what else is in the header.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×