Linux network connection via proxy

For talk and Help about everything concerning TV-Browser.
Antworten
jgbreezer

Linux network connection via proxy

Beitrag von jgbreezer »

Excuse me for writing in English, I never learned German. Use google translate!

On Linux, there is a de-facto standard using the environment variables http_proxy (as in "wget" application and "lynx" and others).

For example:

Code: Alles auswählen

export http_proxy="http://127.0.0.1:8080"
Or whatever.

Shouldn't tv-browser use these, if it is able to read them, or have the choice to. Would make it easier to configure.
Benutzeravatar
bodo
Site Admin
Beiträge: 19635
Registriert: 03 Dez 2003, 19:37
Wohnort: Köln
Kontaktdaten:

Beitrag von bodo »

The TV-Browser is not platform specific. We don't want to add too much plaform specific code into it.

If the code is *really* needed, it will be added, but something like this "nice to have" is not something we will add to the codebase.

Platform specific code is very dangerous ;).
jgbreezer

Beitrag von jgbreezer »

I agree, generic code is very nice and easy to maintain. You can probably get away with it in Java too most of the time without writing any. I don't know the language much, but is there a general library you can import for doing web stuff that knows about the local machine's proxy? I know if you're using it inside a web browser as an applet it can use the browser to make requests and they should go through the same way.

Anyway, fair enough. Sometimes you need to do platform-specific, and as long as it's covered under all platforms it'll be used on and not an essential part of it (ie has a safe fallback if not defined for a specific platform) and doesn't change the rest of the functionality I don't mind doing it myself.
Antworten