mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 18:04:48 +00:00
![]() According to HTTP/1.0 standard the HTTP reply consist of * Status Line + CRLF * Zero or more Response Header Fields (each ended with CRLF) * CRLF on new line (Response Header Fields end marker) * Optional Entity Body. Thus in response headers we state: Content-Length = 30 but actual transferred file data is: "\r\n<html><body>Hi</body></html>\r\n". This is 32 bytes of data. So we get and check for correctness 32 bytes of data, but * The response we are used is incorrect, real server will set Content-Length to 32. * default_wget_info->hdr_cont_len will be set to wrong value 30 (used for efi http booting). Fix an issue by: * replace bogus response with an actual response from the HTTP server * format response to show HTTP response structure * recalculate md5sum as transferred file data has been changed. The server response was captured with the commands echo -ne "<html><body>Hi</body></html>\n" > ~/public_html/test.html echo -ne "GET /~${USER}/test.html HTTP/1.0\r\n\r\n" | netcat localhost 80 >reply.txt Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> |
||
---|---|---|
.. | ||
addrmap.c | ||
armffa.c | ||
bdinfo.c | ||
cmd_ut_cmd.c | ||
command.c | ||
coreboot.c | ||
cpuid.c | ||
exit.c | ||
fdt.c | ||
font.c | ||
hash.c | ||
history.c | ||
loadm.c | ||
Makefile | ||
mbr.c | ||
mem.c | ||
mem_copy.c | ||
mem_search.c | ||
meminfo.c | ||
msr.c | ||
pci_mps.c | ||
pinmux.c | ||
pwm.c | ||
rw.c | ||
seama.c | ||
setexpr.c | ||
temperature.c | ||
test_echo.c | ||
test_pause.c | ||
wget.c |