It is currently Tue Jun 02, 2020 2:52 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject:
PostPosted: Thu Aug 16, 2001 8:11 am 
Offline
PureBasic Guru
PureBasic Guru

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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 16, 2001 3:13 pm 
Offline
PureBasic Guru
PureBasic Guru

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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 18, 2001 12:25 pm 
Offline
PureBasic Guru
PureBasic Guru

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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye