How to post variables to remote url

I want to post variables to remote php script
 
for instance http://server.com/log.php?id=javavariable1+javavariable2

MaranellasAsked:
Who is Participating?
 
aboo_sConnect With a Mentor Commented:
Allright man keep it cool, I'm sorry to have bothered you, have a nice life!
0
 
aboo_sCommented:
read this tutorial it has the answer for you

http://www.tizag.com/phpT/postget.php
0
 
MaranellasAuthor Commented:
Did you even read my question or not???? I need it for java not for php.I need to post java variables to remote url!!!
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
aboo_sCommented:
Sorry man, but this was your question:

How to post variables to remote url?
Question:  I want to post variables to remote php script?

Now where exactly does it say "java variables"  ? forgive me for I can't read well ,ah..!
0
 
aboo_sCommented:
Now you want to post java variables use:


window.document.location.href = ' http://server.com/log.php?id='+javariable;

I hope now I got u right!
0
 
MaranellasAuthor Commented:
oh my good are mental?It says category JAVA.And i'm not asking for javascript.I'm asking for java code

something like this

String variable1="somevar";

URL url = new URL("http://www.server.com?catch.php?var" + variable1);
url.OpenConnection;

But it didn't worked so far so i need right answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.