proxies

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Lawliet
Posts: 2
Joined: Mon Sep 06, 2010 11:50 am
Contact:

proxies

Post by Lawliet » Mon Sep 06, 2010 12:07 pm

I've been lurking / stalking the forums for quite a while and thought I'd register...

Here's my question:
I know that you can use

Code: Select all

put url("http://www.google.com/") into fld 1
to retrieve the source code of Google but how do I use that same command but under a proxy? I'm wanting to implement a proxy feature for my application so that all connections my application does on the internet is under a proxy that the user will set.

Thank you so much!
The cake is not a lie.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: proxies

Post by Mark » Mon Sep 06, 2010 10:28 pm

Lawliet,

First, check if your application works with the Windows' proxy settings. If not, then see if the global httpProxy property provides a solution (search for it in the Rev dictionary). You can include a password and user name in the url for the httpProxy property. If you need to know how, I'll look it up.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Lawliet
Posts: 2
Joined: Mon Sep 06, 2010 11:50 am
Contact:

Re: proxies

Post by Lawliet » Tue Sep 07, 2010 12:31 pm

Mark wrote:Lawliet,

First, check if your application works with the Windows' proxy settings. If not, then see if the global httpProxy property provides a solution (search for it in the Rev dictionary). You can include a password and user name in the url for the httpProxy property. If you need to know how, I'll look it up.

Best,

Mark
The httpProxy seems to be the one I'm looking for! I didn't even know / notice of its existence until you told me to look it up. I'll try using it.

I noticed that RunRev automatically detects and uses the proxy configured in Windows. Firefox however, has an option to automatically detect system proxy settings or run without proxy regardless of how the system is set. Is it possible to make my RunRev app run without a proxy even if the Windows system itself is configured to use one?
The cake is not a lie.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: proxies

Post by Mark » Tue Sep 07, 2010 1:40 pm

Hi Lawliet,

I'm not sure, you'll have to try this. When your Rev programme starts, does the httpProxy contain the Windows proxy settings? If so, what happens if you set it to empty?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply