Send and receive URL data

Put your problem here if it does not fit any of the other categories.

Send and receive URL data

Postby saiko6996 » Fri Mar 28, 2008 10:18 pm


I have an apache server and a php file. I want to send data to this php file. I'm trying to send data by this way:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. URL url= new URL(http://localhost/index2.php?option=3&el ... ent2=elem2);
  3.                         HttpURLConnection httpConnection =  (HttpURLConnection)url.openConnection();;
  5.             httpConnection.connect();
Parsed in 0.033 seconds, using GeSHi

I try to pass all the data in the URL direction, but it doesn't work. I don't know how I have to do the connection, and if it is possible to send data by GET method.

Thanks everybody!
Posts: 6
Joined: Tue Feb 19, 2008 7:41 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests