Search:

Type: Posts; User: mike2033

Search: Search took 0.35 seconds.

  1. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    The negative values are the problem, the rest is right. 71 101 108 108 111 means Hello. Damn, why does the webserver send that

    EDIT: I just tried it with my local server again, he sends the same :(
  2. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    Hm, can you translate that into ASCII please?
  3. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    Try it with my actual server: http://screens500.funpic.de/code.htm

    And yes, you are right. Somehow it works with Google. I'm not sure what's wrong my webpage. Please take a look

    EDIT: And is it...
  4. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    Like I said some posts before: Oh, and I just tried it on a local webserver, seems like the application hangs because of the server. On localhost it's much faster.

    And it writes Task 0 then waits...
  5. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    That's the source code right now:


    URL obj = new URL(url);
    HttpURLConnection conn = (HttpURLConnection) obj.openConnection();
    conn.setReadTimeout(5000);...
  6. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    First, sorry that I didn't do it with prinl. I didn't know how to use it but I hope that my methode there worked too. And then I just see that I forget Task number 3, so I changed the code. Now the...
  7. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    Alright. I tried it like that:


    URL obj = new URL(url);
    HttpURLConnection conn = (HttpURLConnection) obj.openConnection();
    conn.setReadTimeout(5000);...
  8. Replies
    16
    Views
    499

    Re: Java HTTPURLConnection

    Hello! Thanks for your answer. So you mean add println("Some status") after every line?

    Greets
  9. Replies
    16
    Views
    499

    Java HTTPURLConnection

    Hello forum!

    I would like to ask what's wrong with my code since I haven't found any solution yet. Currently it looks like this: (it's not my own code, I found it somewhere and changed it but...
Results 1 to 9 of 9