Getting info of URL

Discussion in 'Java' started by Kartz, May 3, 2007.

  1. Kartz

    Kartz Guest

    Hi to all,
    I'm a beginner in Java, and i would like to know how to get the
    full URL from the browser to the Java program. I'm doing a project on
    Proxy server. When I try to get input(a request for a file from the
    browser), i'm getting some what like:

    GET / http://sample.txt/ HTTP 1.1

    I'm not able to get the User-Agent, host name and file type.

    I'm unable to seng pictures, audio files and video files to the
    client.


    Anyone can help me????
     
    Kartz, May 3, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vasanth
    Replies:
    0
    Views:
    768
    Vasanth
    Jun 28, 2004
  2. Jon paugh
    Replies:
    1
    Views:
    1,357
  3. Andrea Williams

    Clear the Render info & change to different info

    Andrea Williams, Oct 27, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,628
    Ken Dopierala Jr.
    Oct 27, 2004
  4. anonymous
    Replies:
    1
    Views:
    4,901
    Francisco Padron
    May 8, 2005
  5. Jeff

    getting query info in a url

    Jeff, Feb 27, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    372
    John Timney \(MVP\)
    Feb 27, 2007
  6. Kiran
    Replies:
    0
    Views:
    1,431
    Kiran
    Feb 6, 2005
  7. IanR
    Replies:
    2
    Views:
    453
    Albert Hopkins
    Mar 12, 2009
  8. Just D.
    Replies:
    0
    Views:
    815
    Just D.
    Aug 11, 2004
Loading...