Fedora Linux Support Community & Resources Center
  #1  
Old 22nd July 2012, 09:28 PM
cmanL Offline
Registered User
 
Join Date: Jul 2012
Location: America
Posts: 76
macossafari
Network Proxy Settings

Is there a way to change the network proxy settings from a C program that runs in a terminal window? I know the environment variables for HTTP proxies can be changed with the command:

Code:
      export http_proxy=http://MyProxy:MyPortNumber
and I know the gclib provides a function in stdlib.h ,
Code:
      setenv ( const char * name , const char * value , int overwrite )
that can be used to change environment variables in a shell. Could one write a command line application to change proxy settings of Mozilla Firefox by using the above information ( I know that it would probably be better to write such an application using the Mozilla programming framework , but I haven't learned enough about programming Mozilla yet - I'm reading Programming Firefox currently ). Also , does anyone know of a good book on programming the X-Windows system? I've been programming Microsoft Windows for a number of years , but have no knowledge of the Linux GUI system. Thanks for any information!
Reply With Quote
  #2  
Old 4th August 2012, 04:45 PM
cmanL Offline
Registered User
 
Join Date: Jul 2012
Location: America
Posts: 76
windows_xp_2003firefox
Re: Network Proxy Settings

I guess setting the environment variables to spawn a new process ( firefox ) with a certain proxy setting would only work one time ( the child process's copy of the environment variables would not change with the parent process's variable changes after the initial fork of the child process ). Anyway , I've been reading Volume One: Xlib Programming Manual for Version 11 of the X-Window System by O'Reilly Press to learn X-Windows programming with the C/C++ programming language. Is this book still up to date? I hear this is one of the only good books available to learn such programming. Thanks for any input.....
Reply With Quote
Reply

Tags
network, proxy, settings

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy - non-proxy settings in Gnome 3 - F16 boaojatista Servers & Networking 1 17th April 2012 01:19 PM
How to Authenticate for the Network Proxy ( for the Central Proxy / not for yum) mR.cOLd Servers & Networking 1 9th January 2012 05:51 AM
How to Authenticate to the Network Proxy ( to the Central Proxy / not for yum) mR.cOLd Using Fedora 0 31st October 2011 08:40 PM
Network Settings Proxy does not work!? neocortex Using Fedora 5 1st October 2011 10:06 AM
General network Proxy settings Master3 Servers & Networking 12 28th October 2008 12:53 PM


Current GMT-time: 22:06 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat