Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to redirect a url to another using a webproxy ( such as fiddler )

I'm trying to parse a WSDL file which is in another server but has hard codded "localhost" all over the document.

When I fetch it, obviously the program complains "connection refused" because nothing is running in my machine.

My question is: Is it possible to use a webproxy ( such as fiddler ) to redirect those localhost request to my other server so the WSDL references are complete?

:-/

Thanks

p.s. I could always have fixed the remote "wsdl" but the guy on charge will be here until next week and I would like to start working today.

like image 652
OscarRyz Avatar asked Jun 12 '09 22:06

OscarRyz


People also ask

How do I redirect a URL to another URL?

Click the URL Redirects tab. In the upper right, click Add URL redirect. In the right panel, select the Standard or Flexible redirect type. A standard redirect is used to redirect one URL to another.

Can you redirect any URL?

Again, you can permanently redirect an old domain to a new one by using a 301 redirect type. This carries over Google PageRank and other SEO factors like page authority. Changing a post's URL. You can avoid the 404 error by redirecting any deleted page URLs to a new one.


1 Answers

You could use Fiddler as the proxy from your machine, and then have it rewrite the WSDL to change localhost to the correct machine name.

The FiddlerScript CookBook has an example on how to write this sort of script. Go to that page and search for "Remove all DIV tags (and content inside the DIV tag)". Just change the regex to match localhost and set the replace to the machine name you want to use.

like image 106
EvilPettingZu42 Avatar answered Sep 29 '22 00:09

EvilPettingZu42