?
Solved

400 BAD Request error - only in Netscape

Posted on 2000-04-12
2
Medium Priority
?
153 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 220 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses

777 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