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: How do I read a regex address?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: ToddAndMargo via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 15 Jul 2021 11:16:28 -0700
On 7/15/21 10:29 AM, Jeremy Nicoll via curl-users wrote:
> On Thu, 15 Jul 2021, at 17:47, ToddAndMargo via curl-users wrote:
>
>> Fedora 34
>> Xfce 4.14
>> curl-7.76.1-4.fc34.x86_64
>>
>> The below address works in a browser, but not curl.
>
> Does it really? Are you saying you type (or c&p)
>
> uupdump.net/known.php?q=regex:[2-9]\d{4}\
Oh yes: tested with both Firefox and Vivaldi. See
the second picture link below
>
> into the URL bar of, say FIrefox? Or are you executing a command
> from a terminal/console window as eg
>
> firefox.exe https://uupdump.net/known.php?q=regex:[2-9]\d{4}\
>
> In the latter case I would think that maybe (under some sort of
> linux shell) the regex part might get expanded before the command
> is passed to the browser.
>
>
> Moreover a URL like
>
> https://uupdump.net/known.php?q=regex:[2-9]\d{4}\.
>
> means that you're asking the php processor running on the
> server that's hosting the uupdump.net website, to run the
> php script that it has named known.php and pass to it the
> parameter "q=regex:[2-9]\d{4}\." (or maybe if you're using
> linux, pass to it a series of q=nnn values).
>
> Goodness only knows what that will do.
>
>
>> What I get back is the main page.
>
> That probably means it didn't work, and not knowing what
> you wanted, gave you the site's home page as decent
> default.
>
>> I need the "Dev Channel".
>
> If I browse the site's home page I see three links (which are
> architecture dependent) for things described as "Latest Dev
> Channel build", eg (for x64)
>
> https://uupdump.net/fetchupd.php?arch=amd64&ring=wif&build=latest
>
>
> which isn't even close to what you specified. Perhaps it would
> help if you explained where your URL came from.
>
You missed the dev channel button. My fault
for not telling you to look for it. Check the
following lines on the web page:
135: <a class="ui mini button" href="known.php?q=regex:[2-9]\d{4}\.">
136: <i class="search icon"></i>
137: Dev Channel
138: </a>
And a picture is worth a thousand words:
https://ibb.co/G2q6jyf
And this is the web page I want to read:
https://ibb.co/0hF8BZ4
I am trying to read this line:
146: <tr><td><i class="windows icon"></i><a
href="./selectlang.php?id=07f56947-34cb-4f28-aab5-764028e75f17">Cumulative
Update for Windows 11 (10.0.22000.65)
amd64</a></td><td>x64</td><td>2021-07-08 17:00:15
UTC</td><td><code>07f56947-34cb-4f28-aab5-764028e75f17</code></td></tr>
But I have to get the web page first before I
go nuts with regex. I program in Raku, so
Regex's are eloquent.
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-07-15
Date: Thu, 15 Jul 2021 11:16:28 -0700
On 7/15/21 10:29 AM, Jeremy Nicoll via curl-users wrote:
> On Thu, 15 Jul 2021, at 17:47, ToddAndMargo via curl-users wrote:
>
>> Fedora 34
>> Xfce 4.14
>> curl-7.76.1-4.fc34.x86_64
>>
>> The below address works in a browser, but not curl.
>
> Does it really? Are you saying you type (or c&p)
>
> uupdump.net/known.php?q=regex:[2-9]\d{4}\
Oh yes: tested with both Firefox and Vivaldi. See
the second picture link below
>
> into the URL bar of, say FIrefox? Or are you executing a command
> from a terminal/console window as eg
>
> firefox.exe https://uupdump.net/known.php?q=regex:[2-9]\d{4}\
>
> In the latter case I would think that maybe (under some sort of
> linux shell) the regex part might get expanded before the command
> is passed to the browser.
>
>
> Moreover a URL like
>
> https://uupdump.net/known.php?q=regex:[2-9]\d{4}\.
>
> means that you're asking the php processor running on the
> server that's hosting the uupdump.net website, to run the
> php script that it has named known.php and pass to it the
> parameter "q=regex:[2-9]\d{4}\." (or maybe if you're using
> linux, pass to it a series of q=nnn values).
>
> Goodness only knows what that will do.
>
>
>> What I get back is the main page.
>
> That probably means it didn't work, and not knowing what
> you wanted, gave you the site's home page as decent
> default.
>
>> I need the "Dev Channel".
>
> If I browse the site's home page I see three links (which are
> architecture dependent) for things described as "Latest Dev
> Channel build", eg (for x64)
>
> https://uupdump.net/fetchupd.php?arch=amd64&ring=wif&build=latest
>
>
> which isn't even close to what you specified. Perhaps it would
> help if you explained where your URL came from.
>
You missed the dev channel button. My fault
for not telling you to look for it. Check the
following lines on the web page:
135: <a class="ui mini button" href="known.php?q=regex:[2-9]\d{4}\.">
136: <i class="search icon"></i>
137: Dev Channel
138: </a>
And a picture is worth a thousand words:
https://ibb.co/G2q6jyf
And this is the web page I want to read:
https://ibb.co/0hF8BZ4
I am trying to read this line:
146: <tr><td><i class="windows icon"></i><a
href="./selectlang.php?id=07f56947-34cb-4f28-aab5-764028e75f17">Cumulative
Update for Windows 11 (10.0.22000.65)
amd64</a></td><td>x64</td><td>2021-07-08 17:00:15
UTC</td><td><code>07f56947-34cb-4f28-aab5-764028e75f17</code></td></tr>
But I have to get the web page first before I
go nuts with regex. I program in Raku, so
Regex's are eloquent.
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-07-15