-2

Possible Duplicate:
How to send HTTP request in java?

I only have one servlet running on the Tomcat server side. Now I want to send a HTTP request to this servlet from a Swing application, and it's not an APPLET application (because I see some examples sending request from applet). How can I do this?

1
  • "I see some examples sending request from applet" It is much the same when done from an applet, command-line application or servlet. Try using the applet based example and get back to us with a specific question if you run into trouble. Commented Oct 15, 2012 at 3:32

1 Answer 1

2

While you can open a direct socket connection and send the raw HTTP headers & content and receive a response back, I would urge you to take a look at HttpRequestBase.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.