Executing POST command with webserver for php
Posted: Thu Jan 22, 2004 5:53 am
Hi all,
I'm building my own web server on C#.I'm trying to support php with my server.I'm having problems when
executing POST command.I'm testing a webmail written in PHP with my server.I dont know how to pass both
the querystring and body as parameters to php executor in the webserver.
If querystring or body is empty then it works fine for me as i pass the argument like this...
1)c:\php\php.exe "c:\filename.php" querystring ,when body is empty and
2)c:\php\php.exe "c:\filename.php" body, when querystring is empty ...
but i dont how how to pass both vales simultaneously(when both are not empty) as arguments like
c:\php\php.exe "c:\filename.php" querystring body...which doesnt works and also tried
c:\php\php.exe "c:\filename.php" querystring&body ...doesnt works and also tried
c:\php\php.exe "c:\filename.php" querystring\r\n\r\nbody ...which also doesnt works.
please help..
Thanks,
Suresh.
I'm building my own web server on C#.I'm trying to support php with my server.I'm having problems when
executing POST command.I'm testing a webmail written in PHP with my server.I dont know how to pass both
the querystring and body as parameters to php executor in the webserver.
If querystring or body is empty then it works fine for me as i pass the argument like this...
1)c:\php\php.exe "c:\filename.php" querystring ,when body is empty and
2)c:\php\php.exe "c:\filename.php" body, when querystring is empty ...
but i dont how how to pass both vales simultaneously(when both are not empty) as arguments like
c:\php\php.exe "c:\filename.php" querystring body...which doesnt works and also tried
c:\php\php.exe "c:\filename.php" querystring&body ...doesnt works and also tried
c:\php\php.exe "c:\filename.php" querystring\r\n\r\nbody ...which also doesnt works.
please help..
Thanks,
Suresh.