You Are Here:

Community: Developer Discussion Boards

#1 Old pb port 8080 on Tomcat - 2003-05-13, 21:22

Join Date: Mar 2003
Posts: 9
radou
Offline
Registered User
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 ...
Reply With Quote

#2 Old 2003-05-30, 15:50

Join Date: Mar 2003
Posts: 112
ossipetz
Offline
me-2-j :)
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia