Changes

Jump to navigation Jump to search
455 bytes added ,  23:28, 24 October 2012
add http proxy
This is a cow: \goto{\externalfigure[cow][height=2ex]}[url(http://en.wikipedia.org/wiki/Cow)]
\stoptext
</texcode>
 
=== HTTP Proxy ===
 
To use an http proxy for fetching images, the http variable ([http://w3.impa.br/~diego/software/luasocket/http.html LuaSocket]) has to be set up as follows:
 
<texcode>
\ctxlua{http = require("socket.http"); http.PROXY = "http://proxy.example.com:3128"}
</texcode>
 
Replace "http://proxy.example.com:3128" with the proxy URL.
 
 
To disable the proxy again:
 
<texcode>
\ctxlua{http = require("socket.http"); http.PROXY = nil}
</texcode>
174

edits

Navigation menu