[opensuse] https/http redirection on client
Hello: Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net. This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file. The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page. Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it. I tried to google for local proxy servers but could not find out if any of these could be used such a way. Thanks is advance, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op donderdag 7 december 2017 18:02:52 CET schreef Istvan Gabor:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it.
I tried to google for local proxy servers but could not find out if any of these could be used such a way.
Thanks is advance,
Istvan No config file available that allows you to set it?
-- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Knurpht - Gertjan Lettink file wrote:
Op donderdag 7 december 2017 18:02:52 CET schreef Istvan Gabor:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it.
I tried to google for local proxy servers but could not find out if any of these could be used such a way.
Thanks is advance,
Istvan No config file available that allows you to set it?
It does sound like you could just provide the stackexchange https URL to texprinter? Unless it doesn't do https at all .... -- Per Jessen, Zürich (2.7°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 07 Dec 2017 18:20:04 +0100, Per Jessen wrote:
Knurpht - Gertjan Lettink file wrote:
Op donderdag 7 december 2017 18:02:52 CET schreef Istvan Gabor:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it.
I tried to google for local proxy servers but could not find out if any of these could be used such a way.
Thanks is advance,
Istvan No config file available that allows you to set it?
It does sound like you could just provide the stackexchange https URL to texprinter? Unless it doesn't do https at all ....
Texprinter doesn't take any URL address from user, it only takes the thread ID, and the URL is hard coded in the program. What I could do is to use use a proxy for java, it is possible to set proxy for java applications using -java Dhttp.proxyHost and -Dhttp.proxyPort=3128 options. Still there is the question how I can convert the incoming https protocol to http. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 08 Dec 2017 16:18:08 +0100
Istvan Gabor
On Thu, 07 Dec 2017 18:20:04 +0100, Per Jessen wrote:
Knurpht - Gertjan Lettink file wrote:
Op donderdag 7 december 2017 18:02:52 CET schreef Istvan Gabor:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert
> the outgoing http request to https and convert back the > incoming https answer to http, so that texprinter could handle it.
I tried to google for local proxy servers but could not find out if any of these could be used such a way.
Thanks is advance,
Istvan No config file available that allows you to set it?
It does sound like you could just provide the stackexchange https URL > to texprinter? Unless it doesn't do https at all ....
Texprinter doesn't take any URL address from user, it only takes the thread ID, and the URL is hard coded in the program.
It's Java and the source is available, so why not simply alter the URL in the program?
What I could do is to use use a proxy for java, it is possible to set proxy for java applications using -java Dhttp.proxyHost and -Dhttp.proxyPort=3128 options.
Still there is the question how I can convert the incoming https protocol to http.
Thanks,
Istvan
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote:
On Thu, 07 Dec 2017 18:20:04 +0100, Per Jessen wrote:
It does sound like you could just provide the stackexchange https URL to texprinter? Unless it doesn't do https at all ....
Texprinter doesn't take any URL address from user, it only takes the thread ID, and the URL is hard coded in the program.
Like Dave suggested, you could just change it?
What I could do is to use use a proxy for java, it is possible to set proxy for java applications using -java Dhttp.proxyHost and -Dhttp.proxyPort=3128 options.
Still there is the question how I can convert the incoming https protocol to http.
Yes, proxying won't help that. When you can't change the URL, it's abit more difficult. To redirect through a local apache, you would need to force the host-address to resolve to <your apache> - I guess /etc/hosts will suffice for that, so maybe. -- Per Jessen, Zürich (2.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it.
Hi Istvan Apache proxying could probably help you with that. You send your request to your apache http://your.apa.che/your.stackex.url and have "your.stackex.url" proxied to https://your.stackex.url It's a simple apache rewrite, I would say. -- Per Jessen, Zürich (2.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Which version of TextPrinter ar you using? I just downloaded the last version (from: http://texprinter.sourceforge.net/ ), and was able to convert this page: https://tex.stackexchange.com/questions/405194/referencing-a-numbered-glossa... to this pdf: https://ufile.io/9ddbz On 07-12-17 18:02, Istvan Gabor wrote:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it.
I tried to google for local proxy servers but could not find out if any of these could be used such a way.
Thanks is advance,
Istvan
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 8 Dec 2017 17:01:00 +0100, Luuk wrote:
On 07-12-17 18:02, Istvan Gabor wrote:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it.
I tried to google for local proxy servers but could not find out if any of these could be used such a way.
Thanks is advance,
Istvan
Which version of TextPrinter ar you using?
I just downloaded the last version (from: http://texprinter.sourceforge.net/ ), and was able to convert this page:
https://tex.stackexchange.com/questions/405194/referencing-a-numbered-glossa...
to this pdf:
Thanks. I tried it and worked for me too. Last time I tried it it failed. I must admit that I only guessed that the problem was http/https difference. It seems the problem was not https. Still I am interested if an application cannot handle https, only http, how it could be used to access https site or handle https redirection on the server side. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi! On 2017-12-09 16:56, Istvan Gabor wrote:
Still I am interested if an application cannot handle https, only http, how it could be used to access https site or handle https redirection on the server side. Man-in-the-middle (MITM) proxies should be able to handle that. As you already have java: take a look at Burp Suite, which can modify https connections.
best regards Thomas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote:
Still I am interested if an application cannot handle https, only http, how it could be used to access https site or handle https redirection on the server side.
It can't. -- Per Jessen, Zürich (-2.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09-12-17 16:56, Istvan Gabor wrote:
On Fri, 8 Dec 2017 17:01:00 +0100, Luuk wrote:
On 07-12-17 18:02, Istvan Gabor wrote:
Hello:
Earlier I used a program called texprinter to fetch stackexchange threads (website is https://tex.stackexchange.com/) in pdf format. The program's site is http://texprinter.sourceforge.net.
This is a java program, it asks for the thread id and it downloads the thread in a pdf or a tex file.
The problem is that the program hasn't been updated for a while. In the meantime stackexchange started to use https service, that is all http:// requests are redirected to https:// protocol. But texprinter cannot handle the redirection/https protocol and fails to find the requested page.
Is there any application I can install locally and could convert the outgoing http request to https and convert back the incoming https answer to http, so that texprinter could handle it.
I tried to google for local proxy servers but could not find out if any of these could be used such a way.
Thanks is advance,
Istvan
Which version of TextPrinter ar you using?
I just downloaded the last version (from: http://texprinter.sourceforge.net/ ), and was able to convert this page:
https://tex.stackexchange.com/questions/405194/referencing-a-numbered-glossa...
to this pdf:
Thanks. I tried it and worked for me too. Last time I tried it it failed. I must admit that I only guessed that the problem was http/https difference. It seems the problem was not https.
Still I am interested if an application cannot handle https, only http, how it could be used to access https site or handle https redirection on the server side.
Thanks,
Istvan
If the site stops working with http, and only accepts https, you can still do the folllowing 1) Install NetBeans (https://netbeans.org) https://netbeans.org/downloads/ 2) Download the sources from TexPrinter (http://texprinter.sourceforge.net) or hit the download button on https://github.com/cereda/texprinter 3) Now you have the sourcecode, find 'TexPrinter.java'. In this file yo will find line#141: Question q = new Question("http://tex.stackexchange.com/questions/" + questionId.trim()); change this to: Question q = new Question("https://tex.stackexchange.com/questions/" + questionId.trim()); And in the menu find "Run/Build Project (TexPrinter". Some moments later you will have a brand new 'TeXPrinter.jar' whcih will look at https in stead of http. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Dave Howorth
-
Istvan Gabor
-
Knurpht - Gertjan Lettink file
-
Luuk
-
Per Jessen
-
Thomas Wagner