If you want to output to something on a http server, use a server-side script to collect the data.
If you need to send more data then just a few strings, then you can use http://ipxe.org/cmd/param
If you want something that you use as initrd contents, that is also not supported.