Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "John McAllister" To: Subject: OK - more details for the CGI/cygwin problem (doesn't print all my HTML & Javascript to screen) Date: Tue, 18 Feb 2003 13:38:32 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Note-from-DJ: This may be spam Hello again, I guess my earlier message was either ignored or people didn't know what I was talking about. I didn't want to post all my code, because I don't think the problem lies within the code (the exact same cgi program works on the Red Hat UNIX client/server enviroment that it was created in). I was just trying to find out if it was a common problem ie. that an application that works perfectly well on UNIX does not when transferred to cygwin. I'll try to keep this brief: <--- if (strcmp(cgi_request, "h")==0) { insert_js("/home/John McAllister/website/javascript/js_validation.txt"); populate_fields(); } ---> OK - I simply call two functions if the correct request type is posted. ---> void insert_js(char *file_name) { FILE *fp; char buffer[65536]; int res; fp = fopen(file_name, "r"); if(fp == NULL) { printf("Unable to open file for input\n
"); exit(1); } res = fread(buffer, 1, 65536, fp); buffer[res] = '\0'; fclose(fp); strcpy(global_buff, buffer); } --> So, the js_validation.txt javasript file (which contains the necessary

Pick Your Team

--> My Apache configuration works ( I can see my webpages) - but the cgi is not writing all of what it's supposed to be writing. Is this some sort of memory problem? Is it a sockets problem? I am using Apache2 and the latest Cygwin release. I haven't a clue. Hope this helps someone to help me! Thanks, John McAllister -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/