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

Hi!

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);
  2.  
  3.                         HttpURLConnection httpConnection =  (HttpURLConnection)url.openConnection();;
  4.  
  5.             httpConnection.connect();
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


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!
saiko6996
Freshman
Freshman
 
Posts: 6
Joined: Tue Feb 19, 2008 7:41 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 18 guests