#include <net_config.h>
void* http_fopen (
U8* fname ); /* Pointer to name of file to open. */
Description
The http_fopen function opens a file for reading. The
argument fname specifies the name of the file to open. If the
file does not exist, fopen fails.
The argument fname is percent-encoded. This means
that all reserved characters in a file name are encoded escaped. A
reserved character is converted to ASCII and then represented by a
percent followed by two hexadecimal digits.
For example the following URL contains a reserved space
character:
http://[ip address]/file name.txt
This URL is encoded escaped. After processing, the argument
fname points to
file%20name.txt
The http_fopen function is in the HTTP_uif.c module. The
prototype is defined in net_config.h.
Return Value
The http_fopen function returns a pointer to the opened
file. The function returns NULL if it cannot open the file.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.