make remote ATP invocation work for those people who need to go through a proxy;
authorblanchet
Mon, 06 Sep 2010 11:28:06 +0200
changeset 39152 f09b378cb252
parent 39151 fd179beb8cb3
child 39153 b1c2c03fd9d7
make remote ATP invocation work for those people who need to go through a proxy; thanks go to Mathieu G. for that fix
doc-src/Sledgehammer/sledgehammer.tex
src/HOL/Tools/ATP/scripts/remote_atp
--- a/doc-src/Sledgehammer/sledgehammer.tex	Sun Sep 05 21:39:30 2010 +0200
+++ b/doc-src/Sledgehammer/sledgehammer.tex	Mon Sep 06 11:28:06 2010 +0200
@@ -159,7 +159,15 @@
 \S\ref{first-steps}.
 
 Remote ATP invocation via the SystemOnTPTP web service requires Perl with the
-World Wide Web Library (\texttt{libwww-perl}) installed.
+World Wide Web Library (\texttt{libwww-perl}) installed. If you must use a proxy
+server to access the Internet, set the \texttt{http\_proxy} environment variable
+to the proxy before launching Isabelle. Here are a few examples:
+
+\prew
+\texttt{export http\_proxy=http://proxy.example.org} \\
+\texttt{export http\_proxy=http://proxy.example.org:8080} \\
+\texttt{export http\_proxy=http://joeblow:pAsSwRd@proxy.example.org}
+\postw
 
 \section{First Steps}
 \label{first-steps}
--- a/src/HOL/Tools/ATP/scripts/remote_atp	Sun Sep 05 21:39:30 2010 +0200
+++ b/src/HOL/Tools/ATP/scripts/remote_atp	Mon Sep 06 11:28:06 2010 +0200
@@ -86,6 +86,7 @@
 
 # Query Server
 my $Agent = LWP::UserAgent->new;
+$Agent->env_proxy;
 if (exists($Options{'t'})) {
   # give server more time to respond
   $Agent->timeout($Options{'t'} + 10);