Help - Search - Members - Calendar
Full Version: 400 Bad Request
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
deeleea
Using MT 4.2: Hemingway Stylesheet. Classic Blog Templates
Linux Shared Hosting.

I'm getting the following 400 error when I try to save templates - many of the template modules seem to be ok, but it seems as though, if the content of the template includes header information something goes awry... can't place whether it's my MT installation, or my hosting causing the issue... anyone able to shed any light??

Bad Request
Your browser sent a request that this server could not understand.

Client sent malformed Host header

Web Server at *****.com

thanks

Deeleea

Movable Type System Check Information

The mt-check.cgi script provides you with information on your system's configuration and determines whether you have all of the components you need to run Movable Type.
System Information

* Movable Type version: 4.21-en

* Current working directory: /var/www/vhosts/*****.com/cgi-bin/MT421
* MT home directory: ./
* Operating system: linux
* Perl version: 5.8.5
* Perl include path:
plugins/spamlookup/lib
plugins/WidgetManager/lib
plugins/Textile/lib
plugins/MultiBlog/lib
plugins/feeds-app-lite/lib
plugins/StyleCatcher/lib
plugins/WXRImporter/lib
plugins/TypePadAntiSpam/lib
addons/Community.pack/lib
addons/Commercial.pack/lib
extlib
extlib
lib
/usr/lib/perl5/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.
* Web server: Apache
* (Probably) Running under cgiwrap or suexec

Checking for Required Modules
CGI::Cookie

Your server has CGI::Cookie installed (version 1.20).
File::Spec (version >= 0.8)

Your server has File::Spec installed (version 0.87).
Image::Size

Your server has Image::Size installed (version 2.93).
CGI

Your server has CGI installed (version 2.80).
Checking for Data Storage Modules

Some of the following modules are required by the various data storage options in Movable Type. In order run the system, your server needs to have DBI and at least one of the other modules installed.
DBI (version >= 1.21)

Your server has DBI installed (version 1.40).

DBD::mysql

Your server has DBD::mysql installed (version 2.9004).

DBD::SQLite

Your server does not have DBD::SQLite installed, or DBD::SQLite requires another module that is not installed. The DBD::SQLite database driver is required to use SQLite Database. Please consult the installation instructions for help in installing DBD::SQLite.

DBD::Pg (version >= 1.32)

Either your server does not have DBD::Pg installed, the version that is installed is too old, or DBD::Pg requires another module that is not installed. The DBD::Pg database driver is required to use PostgreSQL Database. Please consult the installation instructions for help in installing DBD::Pg.

DBD::SQLite2

Your server does not have DBD::SQLite2 installed, or DBD::SQLite2 requires another module that is not installed. The DBD::SQLite2 database driver is required to use SQLite Database (v2). Please consult the installation instructions for help in installing DBD::SQLite2.

Checking for Optional Modules

The following modules are optional. If your server does not have these modules installed, you only need to install them if you require the functionality that the module provides.
Scalar::Util

Your server has Scalar::Util installed (version 1.14).
Crypt::DSA

Your server does not have Crypt::DSA installed, or Crypt::DSA requires another module that is not installed. This module accelerates comment registration sign-ins. Please consult the installation instructions for help in installing Crypt::DSA.
XML::SAX

Your server has XML::SAX installed (version 0.13).
Archive::Zip

Your server does not have Archive::Zip installed, or Archive::Zip requires another module that is not installed. This module is required in order to archive files in backup/restore operation. Please consult the installation instructions for help in installing Archive::Zip.
Storable

Your server has Storable installed (version 2.13).
SOAP::Lite (version >= 0.5)

Your server has SOAP::Lite installed (version 0.52).
List::Util

Your server has List::Util installed (version 1.14).
HTML::Entities

Your server has HTML::Entities installed (version 1.35).
Text::Balanced

Your server has Text::Balanced installed (version 1.95).
Digest::MD5

Your server has Digest::MD5 installed (version 2.33).
GD

Your server does not have GD installed, or GD requires another module that is not installed. This module is needed if you would like to be able to create thumbnails of uploaded images. Please consult the installation instructions for help in installing GD.
Archive::Tar

Your server does not have Archive::Tar installed, or Archive::Tar requires another module that is not installed. This module is required in order to archive files in backup/restore operation. Please consult the installation instructions for help in installing Archive::Tar.
Safe

Your server has Safe installed (version 2.11).
IO::Uncompress::Gunzip

Your server does not have IO::Uncompress::Gunzip installed, or IO::Uncompress::Gunzip requires another module that is not installed. This module is required in order to decompress files in backup/restore operation. Please consult the installation instructions for help in installing IO::Uncompress::Gunzip.
Digest::SHA1

Your server has Digest::SHA1 installed (version 2.07).
IO::Compress::Gzip

Your server does not have IO::Compress::Gzip installed, or IO::Compress::Gzip requires another module that is not installed. This module is required in order to compress files in backup/restore operation. Please consult the installation instructions for help in installing IO::Compress::Gzip.
Image::Magick

Your server does not have Image::Magick installed, or Image::Magick requires another module that is not installed. This module is needed if you would like to be able to create thumbnails of uploaded images. Please consult the installation instructions for help in installing Image::Magick.
XML::Atom

Your server has XML::Atom installed (version 0.25).
LWP::UserAgent

Your server has LWP::UserAgent installed (version 2.001).
MIME::Base64

Your server has MIME::Base64 installed (version 3.01).
Mail::Sendmail

Your server does not have Mail::Sendmail installed, or Mail::Sendmail requires another module that is not installed. This module is required for sending mail via SMTP Server. Please consult the installation instructions for help in installing Mail::Sendmail.
File::Temp

Your server has File::Temp installed (version 0.12).
Movable Type System Check Successful

You're ready to go! Your server has all of the required modules installed; you do not need to perform any additional module installations. Continue with the installation instructions.
OtherNiceMan
What header information are you putting in the templates?
deeleea
QUOTE (OtherNiceMan @ Oct 14 2008, 07:34 PM) *
What header information are you putting in the templates?


Whatever comes as standard? I haven't made any changes...
OtherNiceMan
OK

400 Bad header is HTTP request headers from the server [see sample below]. It can be caused by trying https traffic coming in on the wrong port for example, are you behind a proxy?

Sample Request Header
CODE
Date: Tue, 14 Oct 2008 21:05:08 GMT
Server: Apache/1.3.41 (Unix) PHP/5.2.5 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.8b
X-Powered-By: PHP/5.2.5
Set-Cookie: sixapartpass_hash=eb23cfdf571fd8e37c76fbc928e7f591; expires=Tue, 21-Oct-2008 21:05:08 GMT; path=/; domain=forums.sixapart.com; httponly
sixapartsession_id=f07304b1598f2bce480f25a88f32071a; path=/; domain=forums.sixapart.com; httponly
sixapartmqtids=%2C; path=/; domain=forums.sixapart.com
Content-Encoding: gzip
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

200 OK
deeleea
QUOTE (OtherNiceMan @ Oct 14 2008, 09:07 PM) *
OK

400 Bad header is HTTP request headers from the server [see sample below]. It can be caused by trying https traffic coming in on the wrong port for example, are you behind a proxy?

Sample Request Header
CODE
Date: Tue, 14 Oct 2008 21:05:08 GMT
Server: Apache/1.3.41 (Unix) PHP/5.2.5 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.8b
X-Powered-By: PHP/5.2.5
Set-Cookie: sixapartpass_hash=eb23cfdf571fd8e37c76fbc928e7f591; expires=Tue, 21-Oct-2008 21:05:08 GMT; path=/; domain=forums.sixapart.com; httponly
sixapartsession_id=f07304b1598f2bce480f25a88f32071a; path=/; domain=forums.sixapart.com; httponly
sixapartmqtids=%2C; path=/; domain=forums.sixapart.com
Content-Encoding: gzip
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

200 OK


You mean when I'm accessing my installation from home? No. I do have a proxy at work and have tried on both the home and work network, both via ethernet and wireless. No change. Should I refer it to my host??
deeleea
Took it to the webhost who added an exemption to modsecurity and now all is well.

Thanks for the input.

Dee
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.