Put requests to server are blocked by firewall

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Put requests to server are blocked by firewall

Post by pkmittal » Wed Apr 18, 2007 1:00 pm

Hello,

I am calling http request on open stack and it does not seems to return anything in the organizations which have very strong firewall. ( Note: I am not using any socket connnection in revolution )

The http request looks like this
put "http://www.xyz.com/start.php?action=start" into URLString
put URL URLString into resultText

The resultText is empty when we are running the stand alone behind the strong firewall but it retuns right results when we run on computers even outside our intranet.

Do you think that firewall can block http request from rev applications ?

Please let me know if you hae some insights.

Thanks
Best Regards
Pradeep

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

Post by Mark » Thu Apr 19, 2007 9:40 am

Hi Pradeep,

Either the firewall blocks port 80 if the requesting application is unknown by the firewall or the server redirects the url to one on a different port. Either way, it is not Rev's fault.

Organisations with super strong firewalls usually also have a very good proxy server. Try setting the httpProxy in Revolution.

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

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Put request are blocked by firewall

Post by pkmittal » Thu Apr 19, 2007 10:01 am

Mark, thanks for your response.

You are right, the requests are blocked because few machines are using proxy settings to connect to the internet.

After talking to clients, I have figured out that internet on their machine is configured in two ways ( either by specifying the proxy server name and port manually in local area connection settings in IE OR specifying the list of proxy servers and correspondig ports in the script file )

do you know what could be done in revolution script so that it autmatically take care of those proxy things ?

Do we need to prompt user to enter the proxy server and ports in the pop up window and set those fields at run time by using following line ?

set the HTTPProxy to PoxyServerAdress & ":" & portNumber.

Please let me know if you have some other insights.

Thanks for your help.
Regards
Pradeep

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

passing user name and password with HTTP Proxy

Post by pkmittal » Thu Apr 19, 2007 11:02 am

To connect to the internet through proxy, I am using the following code

set the HTTPProxy to PoxyServerAdress & ":" & portNumber.

If the proxy demands for authentication then how to pass username and password in the above code ?

Any idea ?

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

Post by Mark » Thu Apr 19, 2007 11:23 am

Hi Pradeep,

The following posts to the Rev Use List contain important information. I hope this solves the problem.

http://search.gmane.org/?query=authoriz ... n.user---A

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