Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > why won't an openConnection() submit the url?

Reply
Thread Tools

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

 
 
Flip
Guest
Posts: n/a
 
      05-14-2004
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?


 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      05-15-2004
On Fri, 14 May 2004 15:34:07 -0400, "Flip"
<[remove](E-Mail Removed)> wrote or quoted :

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


try watching with a packet sniffer to see what is getting sent and
what a successful sender sends.

See http://mindprod.com/jgloss/sniffer.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Catching Submit Event even called by document.forms[0].submit() The Crow ASP .Net 2 09-27-2005 05:03 PM
Preventing Multiple submit (Disabling Submit Button Post Click) Solution Mark ASP .Net 1 12-13-2004 08:03 PM
Disable Submit Button on Post back and On Submit in ASP.net Ghafran Abbas ASP .Net 0 10-12-2004 06:11 PM



Advertisments