in reply to Generating pngs with Mason

What is the *exact* output the server returns to you, including HTTP headers and so forth? You should be able to use something like LWP or netcat to get this.

If you run your GD code and print to a file, can you display that file?

What does the error log say?

Replies are listed 'Best First'.
Re^2: Generating pngs with Mason
by water (Deacon) on Dec 04, 2005 at 01:53 UTC
    yes, the GD code to a file works fine.

    the issue is headers, I think: the response is a 400 code:

    GET /test/sss.png HTTP/1.1 HTTP/1.1 400 Bad Request Date: Sun, 04 Dec 2005 01:49:37 GMT Server: Apache/2.0.49 (Gentoo/Linux) mod_perl/2.0.1 Perl/v5.8.2 Vary: Accept-Encoding Content-Length: 346 Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>400 Bad Request</title> </head><body> <h1>Bad Request</h1> <p>Your browser sent a request that this server could not understand.< +br /> </p>
      And the error log?