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

Discussion in 'Java' started by Flip, May 14, 2004.

  1. Flip

    Flip Guest

    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?
     
    Flip, May 14, 2004
    #1
    1. Advertising

  2. Flip

    Roedy Green Guest

    On Fri, 14 May 2004 15:34:07 -0400, "Flip"
    <[remove]> 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.
     
    Roedy Green, May 15, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. FB
    Replies:
    0
    Views:
    406
  2. Paul Taylor

    url.openConnection() and timeouts

    Paul Taylor, Feb 15, 2005, in forum: Java
    Replies:
    0
    Views:
    3,757
    Paul Taylor
    Feb 15, 2005
  3. Alun Harford
    Replies:
    0
    Views:
    1,876
    Alun Harford
    Oct 31, 2005
  4. Roedy Green

    URL.openConnection bug in 1.6??

    Roedy Green, Jan 26, 2006, in forum: Java
    Replies:
    3
    Views:
    586
    Mickey Segal
    Jan 27, 2006
  5. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,076
    Smokey Grindel
    Dec 2, 2006
Loading...

Share This Page