Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there some fake API program that "simulates" the API? Just I'm going on a long car journey tomorrow, and I won't have an internet connection on my laptop and don't want to waste the whole journey without being able to program, so is there any way of like caching the API so that I can test offline?

share|improve this question
I actually thought about making something like this, but it never materialized :( – Nathan Osman Dec 23 '10 at 0:38
Is there some generic program that can make an offline copy of a website and then make do something to the hosts file to redirect any requests to a local directory? – Jonathan. Dec 23 '10 at 1:04
up vote 2 down vote accepted

You could use the "Map Remote" feature of the Charles proxy to map remote URLs to local files:

share|improve this answer
Thanks, that's amazing! I used it combination with what I answered here: – Jonathan. Dec 23 '10 at 10:52
It's also going to be useful for simulating updates to the API, such as new sites, sites changing etc. – Jonathan. Dec 23 '10 at 10:53
Charles is pretty amazing for a wide variety of use cases. It's so worth the money. – Ash White Dec 23 '10 at 19:04
Especially the throttling, that is useful, both for developing and installing on my brothers computer so he doesn't use all the bandwidth and slow the internet down for everyone else ;) – Jonathan. Jan 3 '11 at 23:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .