1

Possible Duplicate:
How to send HTTP request in java?

I have Java code running in an applet and I want to send the high score by a click of a button back to the PHP where it can be manipulated based on some conditions held within a database.

How do I go about this?

asked Sep 9, 2012 at 8:16
1
  • 3
    I don't know... have you tried HTTP POST? Commented Sep 9, 2012 at 8:18

2 Answers 2

1

Use java.net.URL class to GET or POST data to an url. Any applet running should be able to do it. Implement your PHP to listen in this request.

URL could look like http(s)://<IP>:<PORT>/<CONTEXT>?myvar=<myvalue>

answered Sep 9, 2012 at 8:23
Sign up to request clarification or add additional context in comments.

Comments

1
answered Sep 9, 2012 at 8:30

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.