1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

fixed POST issues in axhttpd

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@126 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2007-09-17 03:29:50 +00:00
parent 7c7e89b540
commit 1d263c9ab4
4 changed files with 200 additions and 12 deletions

View File

@ -24,7 +24,7 @@
#ifdef CONFIG_HTTP_HAS_IPV6
#define HAVE_IPV6
#endif
#define MAXPOSTDATASIZE 30000
#define MAXREQUESTLENGTH 256
#define BLOCKSIZE 4096
@ -88,6 +88,9 @@ struct connstruct
#if defined(CONFIG_HTTP_HAS_AUTHORIZATION)
char authorization[MAXREQUESTLENGTH];
#endif
int post_read;
int post_state;
char *post_data;
};
struct serverstruct
@ -125,7 +128,7 @@ void procreadhead(struct connstruct *cn);
void procsendhead(struct connstruct *cn);
void procreadfile(struct connstruct *cn);
void procsendfile(struct connstruct *cn);
void read_post_data(struct connstruct *cn);
/* misc.c prototypes */
char *my_strncpy(char *dest, const char *src, size_t n);