Re: New Application Project - French Dico
Patrick CARDONA <[email protected]> Sun, 15 Mar 2026 13:38:38 +0100
| Newsgroups | gmane.comp.lib.gnustep.general |
|---|---|
| Message-ID | <f07df209849f2d447455b31cdcf93b42@pi500> |
Hello Nikolaus, On 2026-03-14 14:34:06 +0100 H. Nikolaus Schaller <[email protected]> wrote: > Hi, > >> Am 14.03.2026 um 12:33 schrieb Patrick CARDONA >> <[email protected]>: > >> My questions: >> - Does exist an in-purpose class/method to fetch the URL and get the >> query >> back as a string? > > well, on Cocoa there is -[NSAttributedString > initWithURL:documentAttributes:] > and -[NSAttributedString > initWithURL:options:documentAttributes:error:] but I > don't know if it exists in GNUstep. > Thank you to suggest. >> - If not, is a NStask with 'wget' or 'curl' command and reading then >> the >> produced tempfile a good approach? > > At least this is a good fallback if above fails. You can likely > capture > stdout of "wget -O -" or"curl -o -" from NSTask to circumvent using a > tempfile. Finally, I chose a fallback with Surf browser (WebKit) from Suckless.org because the requested URL needs to execute Javascript on the client side. Well, it is working as expected and the service too. > > BR, > Nikolaus > Cheers, Patrick -- Patrick Cardona - Pi500 - GNU/Linux aarch64 (Debian 13.4) Xorg (1:7.7+24) - libcairo2 (1.18.4-1+rpt1 arm64) - Window Maker (0.96.0-4) GWorkspace (1.1.0 - 02 2025) - Theme: AGNOSTEP - Classic - MUA: GNUMail (1.4.0 - rev.947)