PortableApps.com Wins Big in the 2009 SourceForge Community Choice Awards and hits 100 million portable apps served!

New: Proxy Get Utility

John T. Haller's picture
Submitted by John T. Haller on February 12, 2006 - 8:54pm

I put together a quick utility that will pull the proxy info for the current PC and display it on-screen. This way, if you don't have access to the Internet Connections properties, you can still get the proxy info for getting Portable Firefox, Gaim, etc working.

Get it here:
http://portableapps.com/downloads/ProxyGet.exe

Source here:
http://portableapps.com/downloads/ProxyGet.nsi

It's a small 50k EXE. It's portable. Just run it and a message box will pop up with all the proxy settings you need (including ports).

I'm planning on building this functionality into a later version of the launchers but thought I'd release it stand-alone for now so people can utilize it.

And if you use the code for something... please let me know Smiling

Regards,
John


( categories: )

Clicked it and it says page

Clicked it and it says page not found.

Oops

The name was inverted. I fixed it.

Sometimes, the impossible can become possible, if you're awesome!

Thank you

Now I can use Pff at school
Yay
*Stupid Surfcontrol*
Oh can I (we) see the source?
Please?
Pretty please?
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Usefull!

Great idea!

Is it open source?

This is What I need

This is what I need. Can we see the source-code. What language is this utility written in?

I guess that it is written

I guess that it is written in NSIS as all of the portable apps on this site are.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

'...and do the other things, not because they are easy, but because they are hard...' JFK

What is NSIS?

I have seen a lot of postings on NSIS. Is it a language? Scripting/Compiled?

- DTG

NSIS is a scripting language

NSIS is a scripting language mainly designed for writing installers but it is also fast and portable enough to be use to write full applicatios. See more here
http://nsis.sourceforge.net

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

'...and do the other things, not because they are easy, but because they are hard...' JFK

Interesting

Very neat application. Is the source available?

Rob Loach [Website] [Projects]

Really Simple

It's actually really simple. Just a quick read from Software\Microsoft\Windows\CurrentVersion\Internet Settings and then messing with the string to make it display prettily.

Here's the source:
http://portableapps.com/downloads/ProxyGet.nsi

Sometimes, the impossible can become possible, if you're awesome!

I like this but...

I like this but I was lucky enough to get my schools proxy ip before they blocked the settings in IE

*****
If I can't get it at school I save it to my flashdrive and take it with me.
*****

Doesn't work with autoconfig proxies

ProxyGet can report "no proxy enabled" when the system is actually using an autoconfig proxy. See my comments at http://portableapps.com/node/3441#comment-17000

Autoproxy patch

Here's a patch to add in support for autoproxy detection. It works for me, but I don't have access to enough systems (with different proxy settings) to fully test it.

--- ProxyGet-v0.0.1.1.nsi	Wed Nov 15 11:39:21 2006
+++ ProxyGet.nsi	Wed Nov 15 11:36:26 2006
@@ -20,7 +20,7 @@
 ;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 !define NAME "ProxyGet"
-!define VER "0.0.1.1"
+!define VER "0.0.1.2"
 !define WEBSITE "portableapps.com"
 
 !include LogicLib.nsh
@@ -145,6 +145,12 @@
 
 Section "Main"
 		;=== Check http registry
+		ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Internet Settings" "AutoConfigURL"
+		StrCmp $0 "" NotAutoProxy
+		MessageBox MB_OK|MB_ICONINFORMATION `This computer has an autoproxy:$\n$\n$0$\n$\nThis Proxy Get Utility is made available by the friendly folks at PortableApps.com`
+		Goto TheEnd
+
+	NotAutoProxy:
 		ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Internet Settings" "ProxyEnable"
 		StrCmp $0 0 NoProxy
 		ReadRegStr $1 HKCU "Software\Microsoft\Windows\CurrentVersion\Internet Settings" "ProxyServer"

how would one implement this

how would one implement this patch?

Use "patch"

  1. Download the source for ProxyGet. (link above)
  2. Apply the patch with the "patch" program. For such a simple change you could edit in the changes by hand using a text editor.
  3. Extract the program icon from the executable. (I used IcoFX.)
  4. Recompile the source (and icon) with NSIS.

I had hoped that by posting the patch here John would apply it and release a new version.