Reputation: 1016
I am attempting to do a http request within another http request. Is there a way to do this via command line in linux?
wget http://request another wget http://request
Upvotes: 0
Views: 1471
Reputation: 781200
Use $()
to substute the output of a command:
wget http://someURL?param="$(wget -O - http://otherURL)"
The -O -
option tells wget
to write the output to standard output instead of a file.
Upvotes: 2