<div dir="ltr">Hello, iPXE devs.<div><br></div><div>I was hoping to use the HTTP POST & params support in the latest versions of iPXE to perform a simple POST to a custom application, which would allow me to capture various bits of information (like the MAC & System Serial). However it seems that no matter what I do, the HTTP request is always performed as a GET.</div>
<div><br></div><div>As an example, in iPXE:</div><div><br></div><div> params</div><div> param uuid ${uuid}</div><div> param serial ${serial}</div><div> param bootmac ${net0/mac}</div><div> chain <a href="http://example.com/ipxe/${uuid}/discover##params">http://example.com/ipxe/${uuid}/discover##params</a></div>
<div> <a href="http://example.com/ipxe/00000000-0000-0000-0000-002590d50ec2/discover.">http://example.com/ipxe/00000000-0000-0000-0000-002590d50ec2/discover.</a>.. No such file or directory (<a href="http://ipxe.org/2d0c613b">http://ipxe.org/2d0c613b</a>)</div>
<div><br></div><div>iPXE performs the HTTP request, and even seems to recognise that I've got ##params at the end of the URL. The other end of the HTTP request is a custom Sinatra application with:</div><div><br></div>
<div>get "/ipxe/:uuid/discover" do</div><div> puts "iPXE GET"</div><div> halt(404)</div><div>end</div><div><div><br></div><div>post "/ipxe/:uuid/discover" do</div><div> puts "iPXE POST"</div>
<div> halt(404)</div><div>end</div><div><br></div><div>I've confirmed that only the GET handler is ever called.</div><div><br></div><div>Also is there a cleaner method to perform a "pure" HTTP POST that isn't in some way abusing the chain or img* commands?</div>
<div><br></div>-- <br><div dir="ltr"><p style="font-size:13px;line-height:17.328125px;color:rgb(51,51,51);padding:0px;margin-bottom:10px;font-family:Arial,Helvetica,FreeSans,sans-serif"><a href="http://dyn.com/" rel="nofollow" style="color:rgb(0,109,175);outline:none" target="_blank"><img alt="Dyn logo, Dyn.com" src="http://dyn.com/wp-content/uploads/2013/08/dyn-logo-esignature.png" style="border:none"></a> <a href="http://twitter.com/dyn" rel="nofollow" style="color:rgb(0,109,175);outline:none" target="_blank"><img src="http://dyn.com/wp-content/uploads/2013/08/esignature-icon-dyn-twitter.png" style="border:none"></a><a href="http://twitter.com/dyninc" rel="nofollow" style="color:rgb(0,109,175);outline:none" target="_blank"> </a><a href="http://facebook.com/dyn" rel="nofollow" style="color:rgb(0,109,175);outline:none" target="_blank"><img alt="Dyn facebook account" src="http://dyn.com/wp-content/uploads/2013/08/esignature-icon-dyn-facebook.png" style="border:none"></a><a href="http://twitter.com/dyninc" rel="nofollow" style="color:rgb(0,109,175);outline:none" target="_blank"> </a><a href="http://linkedin.com/company/dyn" rel="nofollow" style="color:rgb(0,109,175);outline:none" target="_blank"><img alt="Dyn LinkedIn account" src="http://dyn.com/wp-content/uploads/2013/08/esignature-icon-dyn-linkedin.png" style="border:none"></a></p>
<p style="font-size:13px;line-height:17.328125px;color:rgb(51,51,51);padding:0px;margin-bottom:10px;font-family:Arial,Helvetica,FreeSans,sans-serif"><span style="font-family:'Trebuchet MS';font-size:13px;line-height:19px"><span style="background-color:rgb(255,249,37);color:rgb(0,0,0)">Kristian Van Der Vliet</span> / <span style="color:rgb(102,102,102)">System Engineer, DevTools</span> <br>
<span style="color:rgb(102,102,102)"><img alt="" src="http://dyn.com/wp-content/uploads/2013/08/esignature-icon-cell.png" style="border:0px"> +44 7983 258 707</span><br><span style="background-color:rgb(0,0,0);color:rgb(255,249,37)"><span style="color:rgb(255,255,255)"></span></span></span></p>
</div>
</div></div>