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

  • Home
  • SEARCH
  • 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 6791833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:53:39+00:00 2026-05-26T17:53:39+00:00

I thought this would be a common problem, but I haven’t been able to

  • 0

I thought this would be a common problem, but I haven’t been able to find many solutions or suggestions.

My iPhone application is using ASIHTTPRequest to interact with web services. I need the app to remain functional even when there isn’t a network connection. I’m attempting to create a general purpose solution that will queue requests while the application is offline. Then, once a network connection is available the requests are pushed through the queue (it could be while the app is still running or it could be when the app is restarted at some point in the future).

I’ve been considering a couple of different options. Unfortunately, ASIHTTPRequest doesn’t implement the NSCoding protocol so there isn’t a nice way to persist the objects on the disk. The other option would be to save the required properties from each request object into an SQLite database, and then reconstruct the ASIHTTPRequest objects when a network connection becomes available. This seems reasonable, but the “required properties” may vary from request to request and I’m ultimately looking for a solution that will work in all cases with all types of requests.

Has anyone implemented something like this?

  • 1 1 Answer
  • 0 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-26T17:53:40+00:00Added an answer on May 26, 2026 at 5:53 pm

    Second option make sense.. You can create the header and body just like passing to ASI to make a request but except write it to sqllite db.. If then your app has a network connections, just create request with those params (header, body) .. So it doesnt dependent the type of request.. Because you’ve already prepared your request param while your app ofline..

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

Sidebar

Related Questions

I thought this would be simple, but its not working .. in both the
I thought this would be fairly easy, but I'm totally baffled. I want one
I thought this would be pretty easy but I'm running into all sorts of
I would have thought this would be an easy one to Google, but I've
Okay at first I thought this would be pretty straightforward. But I can't think
I thought this code would work, but the regular expression doesn't ever match the
This must be a common problem because I see it in many published papers
This is probably just a crazy pipe dream but I thought I would ask
I can't seem to find a .NET answer to this problem, which I would
This probably isn't the most common filename parsing problem, but I have a program

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.