Solved

400 BAD Request error - only in Netscape

Posted on 2000-04-12
2
152 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

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.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

691 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