WebSphere HTTP Server - Unable to read stdin in a C CGI program when content_type is multipart/form-data

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > January 2004 > Unable to read stdin in a C CGI program when content_type is multipart/form-data





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Unable to read stdin in a C CGI program when content_type is multipart/form-data
Paulo Barroso

2004-01-19, 8:21 am

Hi all,

I'm using IBM HTTP Server V5R3M0 and OS/390 v2.10.
I wrote an C CGI program that reads data from stdin and send it back
to the client... (the html form use the POST method). That works fine
when the Content_type is "application/x-www-url-encoded" but when i
try to upload a file using "content_type = multipart/form-data" i
can't get more than two bytes from stdin (13-37)...

I downloaded and installed the samplec program and html from the IBM
developer resource page :
http://www-1.ibm.com/servers/eserve...plec/c_demo.htm

It works fine, but when i changed (in the html page) the text input
field by a file input and added "enctype=multipart/form-data" in the
form tag i got the same problem.

Anyone can help?
Very thanks
Paulo Barroso
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com