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: How do I read a regex address?

From: Jeremy Nicoll via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 15 Jul 2021 18:29:03 +0100

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}\

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.

-- 
Jeremy Nicoll - my opinions are my own.
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2021-07-15