On macos, gethttp uses curl. To retrieve multiple urls, I believe you need
to specify a target file to receive each result.
https://everything.curl.dev/usingcurl/downloads/multiple


On Sat, Apr 22, 2023 at 9:27 AM Ed Gottsman <edward.j.gotts...@gmail.com>
wrote:

> Hello.  I’ve been working with gethttp (on the Mac) and have noticed
> something odd.  I’ve boiled it down to
>
>    ('-o ' , jpath '~temp/gethttp.html') gethttp '
> https://code.jsoftware.com/mediawiki/index.php?title=Special:Search&limit=70&offset=0&profile=default&search=dyadic%20transpose
> '
>
> …works.  It creates a file in ~temp containing the html.  Though,
> strangely, it seems to do it asynchronously—the call returns before the
> file is created and you have to poll for it thereafter.
>
> However,
>
>    $ gethttp '
> https://code.jsoftware.com/mediawiki/index.php?title=Special:Search&limit=70&offset=0&profile=default&search=dyadic%20transpose’
> <
> https://code.jsoftware.com/mediawiki/index.php?title=Special:Search&limit=70&offset=0&profile=default&search=dyadic%20transpose%E2%80%99
> >
> 0
>
> …immediately returns no bytes.  (I imagine they’re eventually going to a
> default file somewhere but have not tried to track it down.)
>
> I’ve experimented and it seems as if specifying more than one header
> parameter (or more than two if you specify one with -H and one with &) will
> cause this behavior.
>
> Am I misguided (or hallucinating)?  If not, is there a way to help gethttp
> take multiple headers and still return the html directly and
> synchronously?  (I’d prefer to avoid polling for files.)
>
> Thanks very much.
>
> Ed
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to