Testing proxy servers in 6.6.2/6.7

Nakia Brewer Nakia.Brewer at westrac.com.au
Thu May 8 19:12:26 EDT 2014


I am starting to think its maybe something I am doing wrong.

Trevor, Happy for you to send me a test stack if you want me to do some further testing

Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions
t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au


  ACN 009 342 572


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Nakia Brewer
Sent: Friday, 9 May 2014 8:58 AM
To: How to use LiveCode
Subject: RE: Testing proxy servers in 6.6.2/6.7

Here is what it logs when I take it off the proxy.

httpproxyforurl for host 'samaritans.org.au': 
Proxy for URL: 
socket selected: csu.harvestapp.com:443|6930 GET /account/who_am_i HTTP/1.1

Host: csu.harvestapp.com

User-Agent: LiveCode (Win32)

Authorization: Basic XXXX I HAVE MODIFIED THIS XXXXXXXXXXX

Content-Type:application/xml

Accept:application/xml


HTTP/1.1 200 OK

Server: nginx

Date: Thu, 08 May 2014 22:53:15 GMT

Content-Type: application/xml; charset=utf-8

Transfer-Encoding: chunked

Connection: keep-alive

Status: 200 OK

Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate

X-Served-From: https://csu.harvestapp.com/account/who_am_i

X-UA-Compatible: IE=Edge,chrome=1

Set-Cookie: _harvest_sess=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWNmZTMyYjdiMzNhMjBjZmJhMGI5OWQyOWVlYjdkNDVmBjsAVA%3D%3D--54c6eb1f196c118651809a3c883fe7dd38192102; domain=.harvestapp.com; path=/; secure; HttpOnly

X-Request-Id: ac2761c2-1e1f-4eb0-aac3-ed4d1345cd10

X-Runtime: 0.345064

X-Server: rails10

X-LB: lb2

Strict-Transport-Security: max-age=31536000; includeSubDomains


httpproxyforurl for host 'proxy.harvestfiles.com': 
Proxy for URL: 
socket selected: proxy.harvestfiles.com:443|6931 GET /production_harvestapp_public/uploads/users/avatar/000/524/958/normal.jpg?1390885472 HTTP/1.1

Host: proxy.harvestfiles.com

User-Agent: LiveCode (Win32)

Content-Type:application/xml

Accept:application/xml


HTTP/1.1 200 OK

Server: nginx

Date: Thu, 08 May 2014 22:53:16 GMT

Content-Type: image/jpeg

Content-Length: 2494

Connection: keep-alive

Last-Modified: Mon, 16 Dec 2013 04:03:33 GMT

x-amz-version-id: null

ETag: "0c27c202ea437a4ea88cd7217d67dd4d"

X-Cached: HIT

Accept-Ranges: bytes



Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions
t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au


  ACN 009 342 572


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Nakia Brewer
Sent: Friday, 9 May 2014 8:52 AM
To: How to use LiveCode
Subject: RE: Testing proxy servers in 6.6.2/6.7

This is what I get

httpproxyforurl for host 'samaritans.org.au': 
Proxy for URL: 
socket selected: csu.harvestapp.com:443|6927 socket error csu.harvestapp.com:443|6927 Error 10061 on socket httpproxyforurl for host 'samaritans.org.au': 
Proxy for URL: 
socket selected: csu.harvestapp.com:443|6928 socket error csu.harvestapp.com:443|6928 Error 10061 on socket httpproxyforurl for host 'samaritans.org.au': 
Proxy for URL: 
socket selected: csu.harvestapp.com:443|6929 socket error csu.harvestapp.com:443|6929 Error 10061 on socket

Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions
t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au


  ACN 009 342 572

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Trevor DeVore
Sent: Thursday, 8 May 2014 11:04 PM
To: How to use LiveCode
Subject: Re: Testing proxy servers in 6.6.2/6.7

On Wed, May 7, 2014 at 9:07 PM, Nakia Brewer <Nakia.Brewer at westrac.com.au>wrote:

>
> Okay so just tested in 6.6.2 RC3 and still no luck.
> Stack works fine if I take it off this network (away from a Proxy) or 
> if I use your work around Trevor...
>

Nakia,

Hmm, the other issue could be authentication. LiveCode isn't going to have authentication callbacks installed by default libURL may just be failing when the proxy server asks for authentication. If the authentication is BASIC or DIGEST then a person can write their own callbacks prompting the user for a username/password. If the authentication type is NTLM then it is a little more complex.

I just did a quick test with WonderProxy and see this in the libURL log:

--------------------------------------
_proxyForURL_proxyForURL use _proxyFromHTTPProxy() with HTTPProxyProxy for
URL: http://baltimore.wonderproxy.com:80
socket selected: 199.15.252.141:80|6924
GET http://www.google.com:80/ HTTP/1.1
Host: www.google.com
User-Agent: LiveCode (MacOS)

HTTP/1.1 407 Proxy Authentication Required
Server: squid/3.4.4
Mime-Version: 1.0
Date: Thu, 08 May 2014 13:01:36 GMT
Content-Type: text/html
Content-Length: 3318
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: Basic realm="WonderProxy"
X-Cache: MISS from baltimore.wonderproxy.com
Via: 1.1 baltimore.wonderproxy.com (squid/3.4.4)
Connection: keep-alive
--------------------------------------

So the authentication part fails.

Can you turn on logging for lib URL and see if you can figure anything out from the diagnostics? Just create a stack with a field and tell libURL to log to it:

libURLSetLogField the long id of field 1 of stack "Untitled 1"

Do you see any authentication headers?

--
Trevor DeVore
Blue Mango Learning Systems
www.screensteps.com    -    www.clarify-it.com
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.



_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.



_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.






More information about the use-livecode mailing list