View Full Version : Error Message Question


LonghornLady1
08-19-2004, 03:45 PM
I have hand coded a website and got an email from a friend who said on both her work and home computers, one page would not pull up, but she could get into the rest of the site. I have checked that page from several different links and had other friends check it from around the country on different computers and they have all been able to pull up the page in question. The error message she gets whenever she tries is:

Bad Request

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

The request line contained invalid characters following the protocol string.

Does anyone have any ideas as to why this is happening? I assume since it is happening to her, it is probably happening to others as well that just don't know me to email and report the problem. I want my site to work well and really want to get to the bottom of this. Thanks!!

hafunui
08-19-2004, 03:47 PM
show me your coding, and tell me what link is bad, i could try to see whats wrong.

LonghornLady1
08-19-2004, 03:55 PM
Here is the code for the link button to that page from my home page. It works just fine for me and everyone else that I have had try it.

<a href="sale pen.html"><img src="sale pen button.jpg" width="135" height="40" border="0" alt="Sale Pen"></a>

The web address is: www.kslonghorns.com

She has not been able to pull up the sale pen page at all. One computer she is using is Windows 98 and the other is Windows XP. I am using XP as well and IE6. I don't know what browser she is using.

Thanks for your help on this. I really appreciate it!

hafunui
08-19-2004, 03:59 PM
i dont think theres anything wrong with it (that i can see), it works for me, it might be your friends computer.

LonghornLady1
08-19-2004, 04:06 PM
Thanks for checking my code. What could be wrong with BOTH her computers? They are in different towns even and not hooked up to the same ISP. Could there be some kind of settings on them that would cause this? Could there be something going on with my server that would not recognize a request coming from a particular browser? I'm new to all this as I just took a basic html class this summer and that's as far as my knowledge goes. I need to find out why though, so if anyone has any suggestions on who I could contact or where to check, I would appreciate it very much! Blessings!

Monkey Bizzle
08-19-2004, 05:07 PM
this may be silly but... sometimes i can't access my bro's comics online cause he puts spaces in the file name... like www.wahtever.com/comic (http://www.wahtever.com/comic) name.html...

but, if he changes it to www.whatever.com/comicname.html (http://www.whatever.com/comicname.html) it works so... maybe you should rename all your pages so that they are one word...

pb&j
08-19-2004, 06:22 PM
this may be silly but... sometimes i can't access my bro's comics online cause he puts spaces in the file name... like www.wahtever.com/comic (http://www.wahtever.com/comic) name.html...

but, if he changes it to www.whatever.com/comicname.html (http://www.whatever.com/comicname.html) it works so... maybe you should rename all your pages so that they are one word...
that would be my guess as well.

if you want spaces, use %20 instead (that equals the space character).

or instead of space you can use the _ underscore character in your filenames. that way you can still have the seperate words and keep it readable.

or, as suggested, keep in all in one word.

LonghornLady1
08-19-2004, 09:02 PM

LonghornLady1
08-19-2004, 09:07 PM
AAHHHH! That makes sense. So her browsers are less forgiving than the one myself and others are using and don't recognize that space in the address. I think that is the only file in my whole website that has a space in the address, SOOO, your solution fits perfectly. THANK YOU SO MUCH!! Now, can I just insert the underscore or %20 in that page's filename and all my links that have the space will recognize that as the same name, or do I have to rename it on everypage that contains a link to it? We're only talking about 60 or 70 different pages to change (ARGH!).

pb&j
08-20-2004, 07:06 AM
if you rename your actual file using percent 20...

sale%20pen.html

the coding itself should be ok as it is currently.