Problems with cgi output using httpd 2.4.41 under Windows 10 x64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, everybody!
 
I've started using apache web server with cgi program written in C
 
httpd 2.4.41 under Windows 10 x64
 
As a first step I created a simple cgi that makes an easy HTML page.
Works good
But I need to include in my future web page pictures that would be generated by cgi either.
So I write another test cgi that was loading a little PNG image from file and then push it to the browser.
 
Huh, It doesn't work!
 
Browser replied image is broken.
I stored it to disk and compared with original file and found extra bytes when it goes through webserver.
Trying different images made different amount of extra bytes from 1 to 12
 
Two  hours watching if anyone had the same problem with no result. Problem is specific and rare and none found the way to solve it.
 
After making byte to byte comparison of the files I found that apache is adding #13bytes to #10 characters in image data even though image/png mime was signed in header that cgi output to web server.
 
What's wrong?
 
Thatk you for any help
 
Alexander

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux