[ipxe-devel] SOLVED [was Re: Possible to print content/result got by http?]

Oliver Rath rath at mglug.de
Wed Aug 26 14:36:53 UTC 2015


Hi Michael,

now, if you tell me, its totally clear! I dont need the content, just
chainloading a ipxe-script who writes the content! :-)

I did not see the wood for the trees ...

Thanks for help very much!

Regards
Oliver




On 26.08.2015 16:15, Michael Brown wrote:
> 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 ||
> operators.
>
> Michael




More information about the ipxe-devel mailing list