How to test a POST from cmd
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
echo "hello world" | ./modharbour test.prg
whatever is written there ("hello world") becomes the AP_Body() from modharbour
whatever is written there ("hello world") becomes the AP_Body() from modharbour
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=46&t=41267
#include <stdio.h>
#include <string.h>
int main( int args, char * argv[] )
{
char buffer[ 250 ];
memset( buffer, 0, sizeof( buffer ) );
read( fileno( stdin ), buffer, sizeof( buffer ) - 1 );
printf( "%s\n\n", "Content-Type: text/html;" );
printf( "%s", buffer );
return 0;
}
function Main()
? FReadStr( hb_GetStdIn(), 256 )
return nil