short question..

Patrick Sibenaler (patrick@arch.ethz.ch)
Tue, 6 Aug 1996 20:08:35 GMT


Hi.
I'm not subscribed to this list, so please answer directly... (I 
hope I'm talking to anybody at all....  ;)

I wonder if someone can tell me where the output of GET gets piped to.
If I perform a request like 
> GET http://host/thisfile.html

I will get the content of the file directly to the shell. But if I do the
same from another perl program, calling 
`GET http://host/thisfile.html`;

I will not get any output at all, although I know the request has been 
handled properly (as I found in the server's log). Piping to a file 
will get me an empty file. Same with errors. So where the hell do those 
bytes go to, all of a sudden?
Looking at GET as is, I found the errors getting piped to STDERR, which 
I don't care about. But I expected the STDOUT as the default output dev. 

Am I mixing something up here?  Or how do I use GET to get a URL and      
write it straight to a file from another script... (Yes, doing the     
same thing at the prompt : GET http://host/file.html > outfile will 
DO the job.. but NOT if I do the request from within another script..)
(Boy, do I feel stupid...)

greets anyway...
   patrick
------------------------------------------------------------------------------
The trick is to communicate bi-directionally in real time and high resolution!
------------------------------------------------------------------------------