Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

400 BAD Request error - only in Netscape

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: blockā€¦
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

610 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