2

I'm trying to work on a page whose source I don't have access to - the dev's on that side accidentally updated a piece of functionality to point to the wrong domain...

I just want to continue development, but would need something that will let me do this before the script has a chance to execute.

AstroCB
  • 12,337
  • 20
  • 57
  • 73
gogogadgetinternet
  • 5,719
  • 4
  • 24
  • 28

1 Answers1

3

You may find this answer interesting:

Intercept and use local files in http requests

It basically proposes using Fiddler to server all the files from the live site except the ones that you choose (that you can use to load from your disk) and you may continue developing with your version of the site without affecting the actual environment.

EDIT: You actually don't need to use Fiddler, since most proxies thought for development will have some feature that enables you to answer with your own responses to certain requests. Fiddler does have, however, an in built feature for that, and in that answer some others (like Charle's proxy) are shown as alternatives with similar features.

Community
  • 1
  • 1
Alpha
  • 7,586
  • 8
  • 59
  • 92
  • Thanks Alpha! Trying it out now.. Looks promising. – gogogadgetinternet May 23 '13 at 21:06
  • So I gave this a shot and at first it appeared to be working... but the source modifications I made to the page I'm trying to inject are not there... hrm... – gogogadgetinternet May 23 '13 at 21:23
  • 1
    If you're making changes into the exact same file, make sure that the proxy is serving the same file that you're modifying. – Alpha May 23 '13 at 21:31
  • Actually I just noticed... the "file" itself doesn't exactly show in the list - I am beginning to wonder if this is a futile attempt due to the fact that the file I'm trying to replace is over https... ? – gogogadgetinternet May 23 '13 at 21:38
  • 1
    @user446936 That should not be a problem, Fiddler can decrypt HTTPS requests as well. Check [this link](http://fiddler2.com/documentation/Configure-Fiddler/Tasks/DecryptHTTPS). – Alpha May 23 '13 at 21:45
  • 1
    Thank you very much Alpha. You are 100% right. I've finally decrypted the traffic (although the instructions for making domain-specific decryption rules in fiddlerscript is a lie). In my particular case the response was also compressed - this was easy to handle - simply right click the response and choose "Decode Selected Sessions" at the top of the menu. Thanks again Alpha. You're a life saver. – gogogadgetinternet May 23 '13 at 22:04
  • @user446936 I'm glad to help! Just paying it forward, it's filled with life saver people around here and they've certainly saved me as well. ;) – Alpha May 23 '13 at 22:09
  • Unfortunately a couple of hours later... it randomly decides to stop working. Grrrr! – gogogadgetinternet May 24 '13 at 02:13
  • Sorry to hear that. Feel free to bring up another question about the specific issue you're having. – Alpha May 24 '13 at 13:58
  • 1
    I figured it out - it was unrelated. – gogogadgetinternet May 24 '13 at 15:25