• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to read proxy username and password?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to read proxy username and password?


  • Subject: How to read proxy username and password?
  • From: Mark Allan <email@hidden>
  • Date: Fri, 31 Oct 2008 16:09:53 0000

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to read proxy username and password?
      • From: "Colin Barrett" <email@hidden>
  • Prev by Date: Re: Compare images in Cocoa
  • Next by Date: Re: Compare images in Cocoa
  • Previous by thread: Re: windowDidExpose: When called?
  • Next by thread: Re: How to read proxy username and password?
  • Index(es):
    • Date
    • Thread