× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Never mind, I think I have it figured out.  I wasn't making the connection
correctly.

Thanks,
Aaron Bartell

-----Original Message-----
From: Bartell, Aaron L. (TC) [mailto:ALBartell@taylorcorp.com]
Sent: Friday, October 11, 2002 9:14 AM
To: 'web400@midrange.com'
Subject: [WEB400] Socket connection to Servlet


I am trying to make a socket connection from an RPG program to a Java
Servlet that I have running on an AS/400 using the non-IBM Tomcat server.
When I use my browser to access the Servlet it returns the desired output,
but when I use sockets from within an RPG program accessing the same URL I
get the following:

HTTP/1.1 400 No Host matches server name localhostContent-Type:
text/htmlCon
nection: closeDate: Fri, 11 Oct 2002 14:00:48 GMTServer: Apache
Tomcat/4.0.4
 (HTTP/1.1 Connector)


If I try and access an RPG CGI program on the same AS/400 with the same
socket program I get perfect results.

Does Tomcat not like socket connections?

Any help is much appreciated,
Aaron Bartell
_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/web400
or email: WEB400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.