Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: http client

  1. #1

    Default http client

    hello everybody,
    I want to make an simple http client ,takes raw http requests from you and sends them
    to the server,I opened a socket to port 80(which my apache works on),but every time I send a request ,no response received ,I don't know what's the problem with http,because I know that my application works correctly.
    I just want it to be like telnet ,when I use telnet to connect to port 80,it establishes a connection,I write my own http request then it immediately returns the response and close the connection,I will appreciate any helpful reply.


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: http client

    Can we see your code please?

    Is a response received when you connect to any other port other than port 80?

    Do you have a firewall enabled?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

Similar Threads

  1. HTTP Status 404
    By Star_pro in forum Java Servlet
    Replies: 0
    Last Post: February 28th, 2011, 01:17 PM
  2. forced HTTP 500 error
    By alma123 in forum Java Servlet
    Replies: 1
    Last Post: January 27th, 2011, 11:51 AM
  3. Sending XML over HTTP to Another Application
    By darasgar in forum Java Servlet
    Replies: 2
    Last Post: July 14th, 2010, 01:56 PM
  4. HTTP Status 500 -
    By mqt in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 6th, 2010, 01:09 AM
  5. cant get rid of http connection
    By kartik in forum Java Networking
    Replies: 1
    Last Post: July 21st, 2009, 03:09 AM