Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer
    
Thanks, that's amazing! I used it combination with what I answered here: stackoverflow.com/questions/4517765 –  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
add comment

You must log in to answer this question.

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