Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Http Request

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Http Request

    while doing http request app freeze until get response how can I fix this
    I want to send multiple http requests and use other app functions at same time


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Http Request

    Quote Originally Posted by nillson View Post
    while doing http request app freeze until get response how can I fix this
    I want to send multiple http requests and use other app functions at same time
    Define app freezes. What type of GUI? What is the app? If you wish to accomplish parallel processing, use a thread or SwingWorker (depending upon what your 'app' is) to perform the http request and then up update the UI where appropriate.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Http Request

    app=application is some kind of bot with list of accounts
    I select account and push start and process start but I cannot start second account until first is done
    or lets say I start timer in same time and he freeze until http request is done
    (all functions are paused while doing request)

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Http Request

    Do you understand how a thread for the http requests would keep the GUI free to respond to user actions?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 0
    Last Post: February 11th, 2013, 07:27 AM
  2. How to properly return a gzip encoded http request
    By tommekevda in forum Java Networking
    Replies: 1
    Last Post: January 16th, 2013, 05:34 PM
  3. Clueless on request.getContextPath()
    By ram.java in forum What's Wrong With My Code?
    Replies: 0
    Last Post: August 29th, 2011, 12:07 PM
  4. Can't form a simple POST or GET http request. No data returns.
    By goodguy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 29th, 2011, 05:04 AM