curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Problem reading revision from a web page

From: ToddAndMargo via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 28 Oct 2022 03:28:24 -0700

On 10/28/22 00:32, ToddAndMargo via curl-users wrote:
> On 10/28/22 00:11, Daniel Stenberg wrote:
>> On Thu, 27 Oct 2022, ToddAndMargo via curl-users wrote:
>>
>>> curl: (3) bad range in URL position 103:
>>
>> Switch off globbing with -g or --globoff.
>>
>
> Awesome!  Thank you!




I was not out of the woods yet.

I had to change

type=13554&amp;tx_esetdownloads_ajax%5Bproduct%5D=82&amp;tx_esetdownloads_ajax%5Bbeta%5D=0&amp;tx_esetdownloads_ajax%5Bpage_id%5D=931&amp;tx_esetdownloads_ajax%5Bplugin_id%5D=1456376
-o -

to

type=13554&tx_esetdownloads_ajax[product]=82&tx_esetdownloads_ajax[product]=82&tx_esetdownloads_ajax[beta]=0&tx_esetdownloads_ajax[beta]=0&tx_esetdownloads_ajax[page_id]=931&tx_esetdownloads_ajax[page_id]=931&tx_esetdownloads_ajax[plugin_id]=1456376&tx_esetdownloads_ajax[plugin_id]=1456376&lang=us'
-o -


This is regex inside Raku (perl 6)

$JsonAddr ~~ s:global/ $( Q[%5B] ) /[/;
$JsonAddr ~~ s:global/ $( Q[%5D] ) /]/;
$JsonAddr ~~ s:global/ $( Q[&amp;]) /&/;

( $WebPage, $PageStatus ) = CurlGetWebSite( "--globoff " ~ $JsonAddr );

And then it behaved.


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-10-28