Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Method get/post?
2018-01-09, 06:49
Post: #4
RE: Request Method get/post?
(2018-01-08 23:06)glenc2004 Wrote:  I think I'm misusing this functionally. I do not chainload. Here is what it actually looks like:

set ks http://${ksaddress}/ks/html/boot.php?##params=data1

set uri ${bootdev} ${predictable} inst.ks=${ks} ip=${ip}::${gateway}:${netmask}:${hostname}::none inst.loglevel=debug root=live:${mirror}${liveos}

kernel ${mirror}images/pxeboot/vmlinuz ${repo} ${uri}

So it's probably not seeing this as a post since it's contained within the kernel line. I think if I want to do this, I'll have to re-write things.

Yes that's not going to work.
Just let me mention that if you had ##params after vmlinuz that would "work" as in posting the data, not that it makes sense but just to be clear on where params can be used.

What you do is that you send of an url to the kernel, which in turn is ignored but read by startup scripts. however params is an iPXE only feature, so that won't work. the fetch with params needs to be done within iPXE to work as you expect it to ... but I don't think there is any way to add the ks file to the cpio, so ks "can't" be fetched inside of iPXE.

Simplest solution is probably to use get parameters instead of post.

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Request Method get/post? - glenc2004 - 2018-01-08, 19:07
RE: Request Method get/post? - NiKiZe - 2018-01-08, 20:15
RE: Request Method get/post? - NiKiZe - 2018-01-09 06:49



User(s) browsing this thread: 1 Guest(s)