]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/HttpDxe/HttpImpl.c
NetworkPkg:HttpDxe: Code changes to support HTTP PUT/POST operations
authorNagaraj Hegde <nagaraj-p.hegde@hpe.com>
Fri, 6 May 2016 10:20:00 +0000 (18:20 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Mon, 16 May 2016 06:22:33 +0000 (14:22 +0800)
commitd8293d31416242468323ef30c6fa2a5bf6267996
tree1087d93ea337f900c8c4fdae71dd7de2da151b82
parentbfba88bc68eed24c71ff500b740c3f563531d49c
NetworkPkg:HttpDxe: Code changes to support HTTP PUT/POST operations

Code changes enables HttpDxe to handle PUT/POST operations.
EfiHttpRequest assumes "Request" and "HttpMsg->Headers" can
never be NULL. Also, HttpResponseWorker assumes HTTP Reponse
will contain headers. We could have response which could contain
only a string (HTTP 100 Continue) and no headers. Code changes
tries to do-away from these assumptions, which would enable
HttpDxe to support PUT/POST operations.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hegde, Nagaraj P nagaraj-p.hegde@hpe.com
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/HttpDxe/HttpDriver.c
NetworkPkg/HttpDxe/HttpImpl.c
NetworkPkg/HttpDxe/HttpProto.h