• winHTTP

    From Nick Vlachou@21:1/5 to All on Thu Oct 19 18:01:04 2023
    Good morning ALL

    I am using CAVO26 and have downloaded Phil's winHTTP code.
    After a few subtle changes I was able to compile the code.
    However, when running the sample code, I continually receive a fatal error and the runtime crashes.
    No matter which of the methods are executed, the fatal error always points to the SELF:_WinHttpOpenRequest Method.

    With no changes to the sample Start() function, the example fails.
    After changing the Host and Url to values which I know are correct, the examples still fail.

    Here is the error;

    An unhandled exception error occurred in module WINHTTP.DLL of you application. Code: 0xC000005 (EP=0x74532580)
    Application: ____Test_winHTTP()_Calls
    Entity: winHttp:_WinHttpOpenRequest, Line 22

    SELF:_hRequest := WinHttpOpenRequest( SELF:_hConnect, ptrVerb, ptrObjectName, ptrVersion, ptrReferrer, ptrAcceptTypes, dwFlags )

    Any advice is welcome.
    Thank you
    Nick

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nick Vlachou@21:1/5 to All on Thu Oct 19 19:22:30 2023
    BTW: Forgot to mention that I am using win11.
    Nick

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ferenc Ferenc@21:1/5 to All on Fri Oct 20 04:04:14 2023
    Hi Nick,

    You can download it here, which works fine for me: http://szepligeti.hu/Download/_____Test_winHTTP%7B%7D_Calls.AEF

    I'm also using Windows 11, not 2.6, but 2.8.

    Best regards:
    Ferenc


    Nick Vlachou ezt írta (2023. október 20., péntek, 4:22:32 UTC+2):
    BTW: Forgot to mention that I am using win11.
    Nick

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nick Vlachou@21:1/5 to Ferenc Ferenc on Fri Oct 20 18:17:50 2023
    On Friday, October 20, 2023 at 7:04:15 PM UTC+8, Ferenc Ferenc wrote:
    Hi Nick,

    You can download it here, which works fine for me: http://szepligeti.hu/Download/_____Test_winHTTP%7B%7D_Calls.AEF

    I'm also using Windows 11, not 2.6, but 2.8.

    Best regards:
    Ferenc
    Nick Vlachou ezt írta (2023. október 20., péntek, 4:22:32 UTC+2):
    BTW: Forgot to mention that I am using win11.
    Nick
    Hi Ferenc
    Thanks for taking the time to answer.
    I already had the download you posted.

    On initial import a few errors are reported;
    1. 3 x Missing DEFINES - They were noted by the developers in a TEXTBLOCK
    2. DEBOUT - including RDD Library fixed that.
    3. In cavo26, B64EncodeString is B64EncString - Fixed

    The AEF now compiled, however, on execution, it kept crashing with a fatal error.
    I tracked this down to the _WinHttpOpenRequest() Method.
    Within this Method(), a call is made to WinHttpOpenRequest( 7 parameteres ) of which paramater #6, ptrAcceptTypes was causing the fatal error.
    I changed this to <null> which allowed this call to execute and return the correct data from the URL.
    Although this worked, I am reluctant to put it into service until I have done extensive testing.
    If anyone knows what the default contents of the <cAcceptTypes> should be, I would be pleased to know.

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)