Re: Newbie question.. reading location header




"john" <shiftingpower@xxxxxxxxx> wrote in message
news:1136046354.980278.98260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi, i'm new to java, I'm trying to read the "location header" that
> contains webpage redirect information from a web server. What class do
> i use? can you provide an example?
>
That's pretty hard to answer as you've given us very little information. It
would help to know what kind of program you are writing: an applet? an
application? a servlet? a midlet? something else?

It should be fairly easy to get that information in a servlet but most Java
newbies don't start by writing servlets. Other types of Java programs may or
may not have access to that information. It's not reasonable to ask us to
list all the classes and methods that might do the job without any idea of
what you're doing.

Rhino



.



Relevant Pages

  • Re: Client-Server to Web App
    ... it possible to keep a connection open to the C++ server between ... The downside is if the C/C++ server side piece is not thread safe. ... Below is a Java ... If you called this class from a standard Java Servlet, for instance, since ...
    (borland.public.delphi.non-technical)
  • Re: Velocity
    ... > If he asks me to go deep into java, there is something I need to know. ... suggest "Java Servlet Programming" by Jason Hunter, ... Finally, if you're going to do any Struts programming at all, ... you should seriously consider installing an IDE such as Eclipse ...
    (comp.lang.java.programmer)
  • Re: Java Servlet counterpart in .Net?
    ... John Timney (MVP) ... wich I can create a web application and decide if I will deploy it on Java ... The closest you probably have to a true servlet is the code behind model ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Servlet To Java Application Communication
    ... I would like to write a Java servlet that it will be able to ... way to communicate with a servlet. ... probably know you should encode the request XML in the body part of a POST ... and expect the response XML in the response content. ...
    (comp.lang.java.databases)
  • Re: Setting up a Java development environment the debian way.
    ... the static typing in Java is acknowledged as one of the ... "generics" as provided in Java 1.5+ then this problem is resolved. ... typed language can be very useful. ... The servlet spec was always a nicer beast, ...
    (Debian-User)