diff options
| author | Michael Brown | 2013-08-14 16:07:52 +0200 |
|---|---|---|
| committer | Michael Brown | 2013-08-19 18:22:58 +0200 |
| commit | e52380fa3b6631851ea5fdf2425c3b49e4229179 (patch) | |
| tree | a002f922da4e4113a85dd15937d0246382b40bc1 /src/include | |
| parent | [cmdline] Add "params" and "param" commands to manage form parameter lists (diff) | |
| download | ipxe-e52380fa3b6631851ea5fdf2425c3b49e4229179.tar.gz ipxe-e52380fa3b6631851ea5fdf2425c3b49e4229179.tar.xz ipxe-e52380fa3b6631851ea5fdf2425c3b49e4229179.zip | |
[uri] Allow URIs to incorporate a parameter list
HTTP POST requires the ability to associate a parameter list with a
URI. There is no standardised syntax for this. Use a non-standard
URI syntax to incorporate the specification of a parameter list within
a URI:
URI = [ absoluteURI | relativeURI ]
[ "#" fragment ] [ "##params" [ "=" paramsName ] ]
e.g.
http://boot.ipxe.org/demo/boot.php##params
http://boot.ipxe.org/demo/boot.php##params=mylist
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/uri.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ipxe/uri.h b/src/include/ipxe/uri.h index 9a134690f..a9ec45550 100644 --- a/src/include/ipxe/uri.h +++ b/src/include/ipxe/uri.h @@ -13,6 +13,8 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <stdlib.h> #include <ipxe/refcnt.h> +struct parameters; + /** A Uniform Resource Identifier * * Terminology for this data structure is as per uri(7), except that @@ -65,6 +67,8 @@ struct uri { const char *query; /** Fragment */ const char *fragment; + /** Form parameters */ + struct parameters *params; } __attribute__ (( packed )); /** A field in a URI |
