2 Entrypoint of "http" shell standalone application.
4 Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
5 Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
6 Copyright (c) 2020, Broadcom. All rights reserved.<BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
14 * String token ID of help message text.
15 * Shell supports to find help message in the resource section of an
16 * application image if * .MAN file is not found.
17 * This global variable is added to make build tool recognizes
18 * that the help string is consumed by user and then build tool will
19 * add the string into the resource section.
20 * Thus the application can use '-?' option to show help message in Shell.
22 GLOBAL_REMOVE_IF_UNREFERENCED
23 EFI_STRING_ID mStringHelpTokenId
= STRING_TOKEN (STR_GET_HELP_HTTP
);
26 Entry point of Http standalone application.
28 @param ImageHandle The image handle of the process.
29 @param SystemTable The EFI System Table pointer.
31 @retval EFI_SUCCESS Http command is executed sucessfully.
32 @retval EFI_ABORTED HII package was failed to initialize.
33 @retval others Other errors when executing http command.
38 IN EFI_HANDLE ImageHandle
,
39 IN EFI_SYSTEM_TABLE
*SystemTable
43 SHELL_STATUS ShellStatus
;
45 mHttpHiiHandle
= InitializeHiiPackage (ImageHandle
);
46 if (mHttpHiiHandle
== NULL
) {
52 ShellStatus
= RunHttp (ImageHandle
, SystemTable
);
54 HiiRemovePackages (mHttpHiiHandle
);
56 if (Status
!= SHELL_SUCCESS
) {
57 Status
= ENCODE_ERROR (ShellStatus
);