Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
zys #1
Member since Apr 2009 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: AGS BOSH behind a PROXY !!
When using AGS BOSH behind a proxy that requires authentication.
AGS does not (may be I am wrong) detect the current user session and send it to the proxy.

An inmmediate workaround is to add the following method to the BoshClientSocket class

        private WebRequest CreateWebrequest(String address) {
            WebRequest webReq = WebRequest.Create(address);
            if (webReq.Proxy != null) {
                webReq.Proxy.Credentials = CredentialCache.DefaultNetworkCredentials;
            }
            return webReq;
        }
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
there was no proxy support for Bosh yet. I added the proxy stuff right now o the latest SVN code. Can you please check out the code and give me feedback?

Thanks,
Alex
Avatar
zys #3
Member since Apr 2009 · 6 posts
Group memberships: Members
Show profile · Link to this post
It is working thx
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS