Thanks for the support bill,
Your procedure worked for me.
From: Programming on behalf of bill
lam
Sent: Saturday, March 2, 2019 11:04 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Decompressing gzip in J
use this,
load'web/gethttp&
> > the --compression option either.
> > > >
> > > >
> > > > Sat, 02 Mar 2019, Nimp O написал(а):
> > > > > Thank you bill,
> > > > >
> > > > > I tried piping the resulting binary stream to busybox within
> > > > > J but it gave me an error. I may be doing so
7;|',jpath'~tools/ftp/busybox.exe gunzip'
|domain error: uucp
| 'r pi'=.0 _1{CreateProcessF 0;( uucp y);0;0;inh;f;0;0;si;pi
Nevertheless, the equivalent line works in the windows command prompt.
Despite this, maybe the ideal solution would be to update curl and wget
/busybox.exe gunzip'
|domain error: uucp
| 'r pi'=.0 _1{CreateProcessF 0;( uucp y);0;0;inh;f;0;0;si;pi
Nevertheless, the equivalent line works in the windows command prompt.
Despite this, maybe the ideal solution would be to update curl and wget
binaries to support this for
|domain error: uucp
| 'r pi'=.0 _1{CreateProcessF 0;( uucp y);0;0;inh;f;0;0;si;pi
Nevertheless, the equivalent line works in the windows command prompt.
Despite this, maybe the ideal solution would be to update curl and wget
binaries to support this form of decompression, avoiding the
s form of decompression, avoiding the use of multiple
> shell utilities.
>
>
> Thanks.
>
>
> From: Programming on behalf of
> bill lam
> Sent: Saturday, March 2, 2019 10:52 AM
> To: programm...@jsoftware.com
> Subject: Re: [Jpr
; bill lam
> Sent: Saturday, March 2, 2019 10:52 AM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] Decompressing gzip in J
>
> You can use gunzip to decompress the data.
>
> busybox.exe bundled in j807 should have this function.
>
> Sat, 02 Mar 2019, bill la
I was wrong about this. The Windows text editor I am using automatically
uncompressed the file. I was not aware of that behaviour. Please ignore my
previous message.
On 3/2/2019 13:56, David Mitchell wrote:
I tried running j wget in a command window on windows 10:
C:\Program Files\j64-807\
multiple
shell utilities.
Thanks.
From: Programming on behalf of bill
lam
Sent: Saturday, March 2, 2019 10:52 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Decompressing gzip in J
You can use gunzip to decompress the data.
busybox.exe bundled in j807
I tried running j wget in a command window on windows 10:
C:\Program Files\j64-807\tools\ftp>.\wget
"http://api.stackexchange.com/2.2/answers/264298?order=desc&sort=activity&site=meta&filter=!.UDo6l2ikDi7iGlf";
-OC:\Users\me\Downloads\foo1.xxx
and the file created was unzipped:
{"items":[{"l
You can use gunzip to decompress the data.
busybox.exe bundled in j807 should have this function.
Sat, 02 Mar 2019, bill lam написал(а):
> Oh, I tried, stackexchange always responsed with gzip data even
> wget had not asked. You need to add an extra option in wget
> --compression=gzip
>
> try us
;curl --manual' for more information
Thanks.
From: Programming on behalf of bill
lam
Sent: Saturday, March 2, 2019 10:23 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Decompressing gzip in J
Oh, I tried, stackexchange always responsed with gzip data even
wget
Oh, I tried, stackexchange always responsed with gzip data even
wget had not asked. You need to add an extra option in wget
--compression=gzip
try use --compressed if it is curl.
I think you are using windows because your api string won't work
on linux, shell will expand special character in it
If you are using a recent enough version of wget, it should
automatically decompress data received.
Sat, 02 Mar 2019, Nimp O написал(а):
> Hello everyone,
>
> For educational purposes I'm trying to read a JSON response from the
> StackOverflow API in J.
>
> My current session is:
>
> load'web/
14 matches
Mail list logo