2018-08-11 Fred Gleason <fredg@paravelsystems.com>

* Added a debug block for saving raw post data to 'RDFormPost'.
This commit is contained in:
Fred Gleason 2018-08-12 20:44:35 +00:00
parent a7780f9b4e
commit ae9296352c
2 changed files with 20 additions and 0 deletions

View File

@ -17370,3 +17370,5 @@
2018-08-11 Fred Gleason <fredg@paravelsystems.com>
* Removed SysV-style init scripts.
* Removed sysconfig support.
2018-08-11 Fred Gleason <fredg@paravelsystems.com>
* Added a debug block for saving raw post data to 'RDFormPost'.

View File

@ -510,6 +510,24 @@ void RDFormPost::LoadMultipartEncoding(char first)
return;
}
/*
* Uncomment to save raw post to disc
*
FILE *f;
if((f=fopen("/var/snd/post.dat","w"))!=NULL) {
char data[1025];
int n;
while((n=fread(data,1,1024,post_stream))>0) {
fwrite(data,1,n,f);
}
fclose(f);
printf("Content-type: text/html\n\n");
printf("Raw post written to \"/var/snd/post.dat\"\n");
exit(0);
}
*/
//
// Get Separator Line
//