Solved

400 BAD Request error - only in Netscape

Posted on 2000-04-12
2
144 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
2 Comments
 
LVL 1

Accepted Solution

by:
Smacked earned 55 total points
Comment Utility
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
Comment Utility
OK, Thx..
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now