why won't an openConnection() submit the url?

F

Flip

I ran the following code snippet in my project and unfortunately the servlet
on the other end didn't run. Why not?

URL url = new URL( "http://localhost/webname/event_id=375&q1=14" );
HttpURLConnection urlConnection = ( HttpURLConnection )
vote.openConnection();

Why won't that submit the URL with the querystring to the servlet on the
other end?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top