是否有可能使用webproxy(如小提琴家)的URL重定向到另一个 [英] Is it possible to redirect a url to another using a webproxy ( such as fiddler )

查看:332
本文介绍了是否有可能使用webproxy(如小提琴家)的URL重定向到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解析一个WSDL文件,该文件在另一个服务器,但在整个文档中有硬编码的localhost。

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.

我的问题是:是否可以使用webproxy(如fiddler)将这些localhost请求重定向到我的其他服务器,以便WSDL引用完成?

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?

: - /

感谢

我可以永远固定远程wsdl,但负责人将在这里,直到下周,我想今天开始工作。

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.

推荐答案

您可以使用Fiddler作为代理从您的机器,然后重写WSDL更改localhost到正确的机器

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.

FiddlerScript CookBook 有一个关于如何编写这种脚本的例子。转到该页面并搜索删除所有DIV标记(和DIV标记内的内容)。只需更改正则表达式以匹配localhost,并将replace替换为要使用的机器名。

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.

这篇关于是否有可能使用webproxy(如小提琴家)的URL重定向到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆