Solved

400 BAD Request error - only in Netscape

Posted on 2000-04-12
2
151 Views
Last Modified: 2010-04-09
Hi,

When I pass data to an ASP VB script with SPACES Netscape returns the error -

"400 Bad Request Due to malformed syntax, the request could not be understood by the server"

The error doesn't occur with IE5.

It doesn't occur in either browser if there are no spaces in the data.

Eg.

/scrips/FaxNumber.asp?param=unit id&data=6

Will return the "400 Bad request.." error in Netscape, not IE5.

While

/scrips/FaxNumber.asp?param=unitid&data=6

Will work in both (note no space - 'unitid'

Is there a way around this, as I require spaces??

Rdgs AJ
0
Comment
Question by:ajosephson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
Smacked earned 55 total points
ID: 2710652
What you have to do is replace all the spaces with %20


if the querystring comes from another page then reformat it before it's written with

<%
replace(querystring,chr(32),"%20")
%>

i think chr(32) is a space. i can't find my ascii chart. if it doens't work just use " ". does the same job.

where querystring is the variable containing the text to be added to the querystring

if that's no good jsut hard code %20 in place of all spaces
0
 

Author Comment

by:ajosephson
ID: 2710707
OK, Thx..
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question