Answered Windows authentication using Openedge.net.pl?

Chris Hughes

ProgressTalk.com Sponsor
Hi

Is this possible does anybody know.
I have basic auth working fine.

I've seen a full .net example using
Code:
System.Net.WebClient:UseDefaultCredentials = TRUE
is this the only way?

Thanks

Chris.
 
Last edited:

Chris Hughes

ProgressTalk.com Sponsor
Thanks Stefan, at least thats an offical answer from Progress and I can stop searching now :)

I have this working using this pure .net code example code

Code:
USING System.*.
USING System.Environment.

DEFINE VARIABLE HttpClient  AS CLASS    System.Net.WebClient.
DEFINE VARIABLE webResponse AS LONGCHAR NO-UNDO.

FIX-CODEPAGE (webResponse) = "UTF-8".

HttpClient = NEW System.Net.WebClient(). 
HttpClient:UseDefaultCredentials = TRUE.
                                                                                                                                
webResponse = HttpClient:DownloadString("https://httpbin.org/get").

HttpClient:Dispose().
DELETE OBJECT HttpClient.

MESSAGE STRING(webResponse) SKIP
    Environment:VERSION VIEW-AS ALERT-BOX.
 
Top