Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Programming is an unnatural act.


devel / comp.lang.clipper.visual-objects / Re: winHTTP

SubjectAuthor
* winHTTPNick Vlachou
`* winHTTPFerenc Ferenc
 `- winHTTPNick Vlachou

1
winHTTP

<58377186-d989-424e-b15c-f598ace6a56en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10084&group=comp.lang.clipper.visual-objects#10084

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:4e23:0:b0:66d:5d84:f830 with SMTP id dm3-20020ad44e23000000b0066d5d84f830mr8889qvb.1.1697763665807;
Thu, 19 Oct 2023 18:01:05 -0700 (PDT)
X-Received: by 2002:a05:6870:c1cb:b0:1e9:e355:c390 with SMTP id
i11-20020a056870c1cb00b001e9e355c390mr231092oad.4.1697763665450; Thu, 19 Oct
2023 18:01:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Thu, 19 Oct 2023 18:01:04 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=180.150.80.19; posting-account=OZVoPwoAAABYtxcDuqe71A91Fj6WnGhj
NNTP-Posting-Host: 180.150.80.19
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <58377186-d989-424e-b15c-f598ace6a56en@googlegroups.com>
Subject: winHTTP
From: nickvlac...@gmail.com (Nick Vlachou)
Injection-Date: Fri, 20 Oct 2023 01:01:05 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Nick Vlachou - Fri, 20 Oct 2023 01:01 UTC

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

Re: winHTTP

<9a97d2c3-cd4d-430f-9435-07c46635c858n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10085&group=comp.lang.clipper.visual-objects#10085

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:4f43:0:b0:635:e9f6:9470 with SMTP id eu3-20020ad44f43000000b00635e9f69470mr85181qvb.5.1697799855083;
Fri, 20 Oct 2023 04:04:15 -0700 (PDT)
X-Received: by 2002:a05:6871:5c7:b0:1e9:9e47:9555 with SMTP id
v7-20020a05687105c700b001e99e479555mr715918oan.11.1697799854675; Fri, 20 Oct
2023 04:04:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 20 Oct 2023 04:04:14 -0700 (PDT)
In-Reply-To: <77b9ee9b-877a-43b8-847f-71b829bf02dcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.110.136.126; posting-account=IISCjQoAAADvx-CgssN4W6a0Iz1fGC1c
NNTP-Posting-Host: 77.110.136.126
References: <58377186-d989-424e-b15c-f598ace6a56en@googlegroups.com> <77b9ee9b-877a-43b8-847f-71b829bf02dcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9a97d2c3-cd4d-430f-9435-07c46635c858n@googlegroups.com>
Subject: Re: winHTTP
From: tuzx...@gmail.com (Ferenc Ferenc)
Injection-Date: Fri, 20 Oct 2023 11:04:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1570
 by: Ferenc Ferenc - Fri, 20 Oct 2023 11:04 UTC

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

Re: winHTTP

<5e627ad4-0014-4dd1-8ddb-3cdc520a889dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10086&group=comp.lang.clipper.visual-objects#10086

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:219b:b0:778:91d1:d078 with SMTP id g27-20020a05620a219b00b0077891d1d078mr62710qka.2.1697851071442;
Fri, 20 Oct 2023 18:17:51 -0700 (PDT)
X-Received: by 2002:a4a:3046:0:b0:582:786:26dc with SMTP id
z6-20020a4a3046000000b00582078626dcmr1230107ooz.1.1697851071107; Fri, 20 Oct
2023 18:17:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 20 Oct 2023 18:17:50 -0700 (PDT)
In-Reply-To: <9a97d2c3-cd4d-430f-9435-07c46635c858n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=180.150.80.19; posting-account=OZVoPwoAAABYtxcDuqe71A91Fj6WnGhj
NNTP-Posting-Host: 180.150.80.19
References: <58377186-d989-424e-b15c-f598ace6a56en@googlegroups.com>
<77b9ee9b-877a-43b8-847f-71b829bf02dcn@googlegroups.com> <9a97d2c3-cd4d-430f-9435-07c46635c858n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5e627ad4-0014-4dd1-8ddb-3cdc520a889dn@googlegroups.com>
Subject: Re: winHTTP
From: nickvlac...@gmail.com (Nick Vlachou)
Injection-Date: Sat, 21 Oct 2023 01:17:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2697
 by: Nick Vlachou - Sat, 21 Oct 2023 01:17 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor