1

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?

2
  • I actually thought about making something like this, but it never materialized :( Dec 23, 2010 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, 2010 at 1:04

1 Answer 1

2

You could use the "Map Remote" feature of the Charles proxy to map remote URLs to local files: http://www.charlesproxy.com/

4
  • Thanks, that's amazing! I used it combination with what I answered here: stackoverflow.com/questions/4517765
    – Jonathan.
    Dec 23, 2010 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, 2010 at 10:53
  • Charles is pretty amazing for a wide variety of use cases. It's so worth the money.
    – Ash White
    Dec 23, 2010 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, 2011 at 23:13

You must log in to answer this question.

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