Re: Microsoft VM and my Applet...

Discussion in 'Java' started by Guest, Aug 22, 2003.

  1. Guest

    Guest Guest

    Sorry! My error! It freezes in "urlc.getHeaderField(0)"

    > ----------------------------
    > URL urlAdv = new URL(getCodeBase() + "/adv.php?" + timeblock);
    > URLConnection urlc = urlAdv.openConnection();

    if (urlc.getHeaderField(0).equals("HTTP/1.1 200 OK")) Image tmp = getImage(urlAdv);
    > timeblock++; // global
    > ----------------------------


    do you know any other method to describe if this page returns "Error 404" or "200 OK"
    Or simply if Image tmp has valid data?
     
    Guest, Aug 22, 2003
    #1
    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. Charles A. Lackman
    Replies:
    1
    Views:
    1,454
    smith
    Dec 8, 2004
  2. SpamProof
    Replies:
    0
    Views:
    651
    SpamProof
    Oct 21, 2003
  3. Kevin Hooke

    Re: Microsoft VM and my Applet...

    Kevin Hooke, Aug 24, 2003, in forum: Java
    Replies:
    2
    Views:
    366
    Gerbrand van Dieijen
    Aug 26, 2003
  4. Replies:
    4
    Views:
    1,117
    Tim Tyler
    May 9, 2005
  5. Replies:
    1
    Views:
    231
    º£Ò»
    Apr 9, 2004
Loading...

Share This Page