CGI the next problem

Windows specific forum
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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.
Post Reply