[ipxe-devel] Possible to print content/result got by http?

Michael Brown mcb30 at ipxe.org
Wed Aug 26 14:15:45 UTC 2015

On 26/08/15 14:17, Oliver Rath wrote:
> is it possible to print some content requestet by i.e. http?

Yes, but you need to have the web server generate an iPXE script to do so.

> or (suboptimal, but ok)
> #!ipxe
> echo "starting process ..."
> imgfetch http://myip/getprocessresult.php?action=5 result| goto failed
> echo "success!"
> goto end
> failed:
> echo "failed!"
> :end
> imgfree result
> prompt
> # result can be "success!" or "failed!"

imgfetch will return with a failure if the web server returns an error 
response (e.g. 404), so you can already do this using the && and || 


More information about the ipxe-devel mailing list