PureBasic Forum
https://www.purebasic.fr/english/

CGI the next problem
https://www.purebasic.fr/english/viewtopic.php?f=5&t=2899
Page 1 of 1

Author:  BackupUser [ Thu Aug 16, 2001 8:11 am ]
Post subject: 

Restored from previous forum. Originally posted by ferryman.

In my bid to write a CGI Library I have got the STDOUT and Enviroment variables working. But I've had no luck with STDIN. For those who don't known CGI, STDIN is used when data is sent to the server when using the "POST" method. I tried getc(), fgetc(stdin) and even DOS INT 07. I can't get these working within a console and I have not tried CGI.

Any one got any ideas

Thanks.

Ferryman.

Author:  BackupUser [ Thu Aug 16, 2001 3:13 pm ]
Post subject: 

Restored from previous forum. Originally posted by wavemaker.

Hi,

I've been trying the same. I think the problem is that arguments in *argv are the parameters passed to the function, not the stdin data. The stdin data must be taken from the starting of the executable.

Somewhere I read that the pointer to the stdin data is in ebp, so I tried inline asm, but it didn't work. I'll post here if I have some success with this.

Regards,

Wavemaker

Juan Calderón Alonso
Registered user

Author:  BackupUser [ Sat Aug 18, 2001 12:25 pm ]
Post subject: 

Restored from previous forum. Originally posted by ferryman.

I found a method to getting STDIN by using getch(). Now all I have to do write the CGI library. Watch this space

ferryman.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/