Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

reading file over the net

Posted on 1998-05-14
1
Medium Priority
?
204 Views
Last Modified: 2010-04-16
HI

I want to be able to instantiate a class (data values) by accessing a file at
the originating site. I have set up my own server and I have to fight thru a
firewall. I tried socket connecting back to the applet's originating site but
had no success. What would be the best way to do this in Java?
RMI? Servlets?  I do not have a servlet server though...

Thanks!
0
Comment
Question by:jinjool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 300 total points
ID: 1221032
I assume that you already know how to access an http server without a firewall, otherwise let me know.

To go through a firewall, your applet must first know the proxy server's address, I mean the IP address and port (normally 8080), then open a connection to the proxy server rather than web server, then send the request as following:

GET http://www.yourserver/yourpath HTTP/1.0
Host: www.yourserver

Please not that this is only the minimum reuqest header, what you should do is first to replace add the host part to your request line, the other headers should remain.  After that the proxy server will send you everything, as though you were directly connecting to the web server.

A servlet does not help.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question