#!/bin/sh # this is a curl stub which directly interfaces with the browsers javascript fetch() via wget # REASON: way less overhead / complexity compared to the v86 linux networking stack tmp=/tmp/$$ wget "$1" -o $tmp test -f $tmp && { cat $tmp rm $tmp }