English 中文(简体)
使用曲线——与代用文件链接
原标题:Use curl --resolve with http proxy

可在curl<>_em>上采用-resolve办法,使您在指定东道国时能够添加识别和识别符号。

Since version 7.21.3 cURL allows specifying an IP address, thus forging the hostname for the request.

www.example.com

The --resolve switch allows you to tell curl which address to request when it would resolve a given hostname. In the above snippet cURL uses 127.0.0.1 (localhost) instead of resolving www.example.com via DNS.

如果不使用http://europa-eu-un.org,这种选择就正确了。

The problem is I would like to use this option simultaneously with the curl --proxy parameter. When this last parameter is set, the DNS entry is not found when calling the same host.

$ curl --proxy 1.2.3.4:80 --resolve www.example.com:80:127.0.0.1 http://www.example.com/

www.un.org/Depts/DGACM/index_spanish.htm 如何解决这一问题?

我有一个想法,即代理人正在使用自己的国家航天中心,我们可以改变它,但也许我错了吗?

问题回答

如果你可以查阅,你还可以修改代理服务器中的/etc/hosts。





相关问题
How to set response filename without forcing "save as" dialog

I am returning a stream in some response setting the appropriate content-type header. The behavior I m looking for is this: If the browser is able to render content of the given content type then it ...

Which Http redirects status code to use?

friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ?

Does HttpWebRequest send 200 OK automatically?

Background: I am implementing Paypal IPN handler. This great article on Paypal states that I am required to send a 200 OK back to Paypal after I read the response. The processing of IPN request is ...

Java HTTPAUTH

我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。

Finding out where curl was redirected

I m using curl to make php send an http request to some website somewhere and have set CURLOPT_FOLLOWLOCATION to 1 so that it follows redirects. How then, can I find out where it was eventually ...