char *http_version; // stack and sent back down to the web server, which transmits it to
char *site_prefix; // the client.
Array *request_headers;
- char *request_body;
+ char *request_body_with_synth_headers; // This is the request body with some synthetic headers prepended into it.
+ char *request_body; // this is just going to be a pointer into request_body_with_synth_headers
long request_body_length;
Array *request_parms; // anything after the "?" in the URL
int response_code;
};
struct uploaded_file { // things that have been uploaded to the server (such as email attachments)
- char id[64];
+ char id[10];
char filename[256];
char content_type[256];
long length;
void UrlizeText(StrBuf* Target, StrBuf *Source, StrBuf *WrkBuf);
void json_render_one_message(struct http_transaction *h, struct ctdlsession *c, long msgnum);
void upload_files(struct http_transaction *h, struct ctdlsession *c);
+struct uploaded_file pop_upload(char *id);