Page 1 of 1

tsNet and proxy servers

Posted: Tue May 02, 2017 12:37 am
by trevordevore
Hi,

I'm looking for information on proxy servers and tsNet. I have the following questions at the moment:

1. I see in tsNetLibURL that the proxy server for a given url is passed in to ulExtHandleRequest. It doesn't seem that libUrlSetAuthCallback is respected, however. What happens if a 407 error is returned? I'm trying to test but I don't know that the proxy is being respected. The proxy server requires a username/password but libURL never reports a 407 error. It makes me wonder if tsNet is actually trying to use the proxy.

2. Is tsNet compiled with support for NTLM authentication on Windows?

Re: tsNet and proxy servers

Posted: Tue May 02, 2017 2:45 pm
by trevordevore
I found the tsNetSetDebugCallback command and turned on logging. I have confirmed that tsNet is ignoring the the proxy set with tsNetSetProxy.

Re: tsNet and proxy servers

Posted: Thu May 04, 2017 11:33 am
by charlesBUSd8qF
Hi Trevor,

I have found a bug in tsNet on certain platforms related to it ignoring the proxy settings (this will be fixed in tsNet version 1.2.9):

http://quality.livecode.com/show_bug.cgi?id=19650

You can set the proxy username/password directly in tsNetSetProxy or, if you are using tsNet via libUrl, by urlencoding them directly into "the httpproxy". For example:

tsNetSetProxy "http://127.0.0.1:8080", "", "username", "password"
OR
set the httpproxy to "http://username:password@127.0.0.1:8080"

Also, tsNet for Windows is compiled with NTLM support.

Hope that helps,

Regards,

Charles