Solved

How to programatically determine Netscape's proxy settings?

Posted on 2002-05-07
5
238 Views
Last Modified: 2010-04-02
    Does anyone know how to programatically determine Netscape's proxy settings?
     I can snag Microsoft's settings out of the registry, but Netscape seems to hide theirs....


Thank you
0
Comment
Question by:kalyan2002
5 Comments
 
LVL 4

Expert Comment

by:pagladasu
Comment Utility
Check the prefs.js file located in
\Program Files\Netscape\Users\username
0
 
LVL 32

Accepted Solution

by:
jhance earned 74 total points
Comment Utility
Unfortunately, it's not as simple as pagladasu indicates.  The file which contains the data is indeed the prefs.js file but the LOCATION of that file varies depending on:

1) Netscape version.
2) User.
3) Windows version.
4) Installation options.

Sorry, but this is far more complex that a 74 pt. question would warrant.  In fact, I think it's more complex than ANY amount of points can justify.  But in concept, this is simple:

1) Open the Netscape XP (cross platform) registry database and find the current user as defined by the Netscape User Manager.  (The SOURCE CODE to the XP registry is available in the Mozilla source tree.)

2) Using the current user, locate the prefs.js file for that user in the XP registry.

3) Open the prefs.js and parse out the proxy settings you want.

That's all there is to it....
0
 
LVL 11

Expert Comment

by:griessh
Comment Utility
Dear kalyan2002

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to split between

     "jhance and pagladasu"

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/


PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 32

Expert Comment

by:jhance
Comment Utility
I suggest that pagladasu NOT be awarded any points.  His answer is misleading and is incorrect for anything but a specific case.
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now