Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to read proxy username and password?



Hi all,

I've got an application which uses a third party command line tool to download some files from the web.  Unfortunately, the command line tool won't work with a proxy server unless the proxy settings are written in clear text (ugly but nothing I can do about that) in a config file.  The config file itself is read/write only by root, so it's not *quite* as hideous as it could be ;-)

Anyway, writing to the config file isn't a problem.  My question is how can I read the System proxy username and password settings from within my application in order to be able to write them to the file?

I've searched through the mailing list archives and had a look at the SystemConfiguration Framework API but still can't quite find what I'm looking for.  The closest thing I can see is SCDynamicStoreCopyProxies but that only returns the following keys in the dictionary:
	kSCPropNetProxiesExceptionsList
	kSCPropNetProxiesHTTPEnable
	kSCPropNetProxiesHTTPProxy
	kSCPropNetProxiesHTTPPort
	kSCPropNetProxiesHTTPSEnable
	kSCPropNetProxiesHTTPSProxy
	kSCPropNetProxiesHTTPSPort
	kSCPropNetProxiesFTPEnable
	kSCPropNetProxiesFTPProxy
	kSCPropNetProxiesFTPPort
	kSCPropNetProxiesFTPPassive
none of which is what I'm looking for.

Can anyone help please?

Thanks,
Mark
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.