Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 551249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:22:25+00:00 2026-05-13T11:22:25+00:00

I have an iPhone app which uses ASIHTTPRequest to communicate to a REST service

  • 0

I have an iPhone app which uses ASIHTTPRequest to communicate to a REST service on my server. When I’m running on the simulator, it works just fine, but when I get onto the phone itself, I get weird behavior.

The very first time I click the button that initiates the request, I get the results back immediately, and all is fine. From that point on, when I click the button to initiate the connection it takes about 2-3 minutes to connect. It almost seems like the ASIHTTPRequest that I kicked off first (and from which I’ve already received the correct results) has not completed. Is there some sort of magic I need to use to terminate the original request before starting the next one? I assumed that since the -start method returned, and I have results from the server that the original request was completed and I could start another.

Any ideas?

Thanks

–Steve

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:22:25+00:00Added an answer on May 13, 2026 at 11:22 am

    You’re not suppose to call the -start method, it belongs to the NSOperation. The ASIHTTPRequest interface is either -startSynchronous or -startAsynchronous.

    However, it’s highly recommend to use the asynchronous call otherwise, your main thread (ie., UI) will be blocked.

    From the ASIHTTPRequest documentation[1]

    In general, you should use
    asynchronous requests in preference to
    synchronous requests. When you use
    ASIHTTPRequest synchronously from the
    main thread, your application’s user
    interface will lock up and become
    unusable for the duration of the
    request. Synchronous requests are only
    really suitable for software without a
    UI (like a script that runs from the
    terminal), or if you are running the
    request from a separate thread that
    you maintain (perhaps from inside your
    own NSOperation, for example).

    [1] http://allseeing-i.com/ASIHTTPRequest/How-to-use

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have very simple iPhone app, which uses just UIButtons , UIlabels , UITableView
I have an iPhone app, which is running only in landscape mode, but recently
I have an iPhone app that compiles and runs fine in the Simulator on
I have a iPhone app which uses TabBar in Navigation controller. I have a
I have an iPhone app which uses facebook. The user experience is not great
I have an iPhone/iPad app which uses Core Data. In my DB I have
I have an iPhone app up on the store which uses core data. Now,
I have an iPhone app that uses ASIHTTPRequest to post data to a php
I have an IPhone app that uses webservices to get data from a server.
In my iPhone app, I have a (non-grouped) UITableView which uses all the bells

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.