RTC Forums
November 25, 2024, 02:51:01 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: 1 [2]
  Print  
Author Topic: Using proxy...  (Read 14078 times)
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #15 on: January 08, 2010, 11:00:28 PM »

It was a misplaced SetupProxy call in the RTC SDK's WinInet and WinHTTP connection providers. The problem should be fixed in the RealThinClient SDK 3.45 (just uploaded). Please download it from the "RTC SDK PRO Download" area and let me know if it works.

Best Regards,
Danijel Tkalcec
Logged
Director
Newbie
*
Posts: 24


« Reply #16 on: January 09, 2010, 10:35:24 AM »

Has installed the new version and has checked up with it. I am afraid that the problem remained.

Each remote call passes so:

1. Request #1:
Quote
POST http://...:.../... HTTP/1.1
CONTENT-LENGTH: 158
Host: ...:...
Proxy-Connection: Keep-Alive
Cache-Control: no-cache
Pragma: no-cache

data...

2. Answer #1:
Quote
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE5
Date: Sat, 09 Jan 2010 09:46:23 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Sat, 09 Jan 2010 09:46:23 GMT
Proxy-Connection: close

html text with error description...

3. Request #2 (which it is called implicitly for me):
Quote
POST http://...:.../... HTTP/1.1
Content-Length: 158
Host: ...:...
Proxy-Connection: Keep-Alive
Cache-Control: no-cache
Pragma: no-cache
Proxy-Authorization: Basic ...

data...

4. Answer #2:
Quote
HTTP/1.0 200 OK
Content-Length: 435
Proxy-Connection: keep-alive

right data
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #17 on: January 09, 2010, 11:06:42 AM »

The it must be a WinHTTP API bug, because all the parameters are now being set (using the WinHTTP API) before the request headers are sent out, and then again (using the exact same API) if a proxy authentication failure response is received.

You can find the complete implementation of the WinHTTP API connection provider in the "rtcWinHttpCliProv.pas" unit. When you set "useWinHttp:=TRUE" and "MultiThreaded:=FALSE", you can step into the RTC SDK source code and see exactly what is happening when you make a remote function call or post a request.

Best Regards,
Danijel Tkalcec
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 16 queries.