473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Bad Request?

Hi,

Here's a link on one of my sites
http://www.bookhead.net/books/Against+All+Enemies%3a+Inside+America's+War+on
+Terror+Richard+A.+Clarke/ISBN/0743260244.aspx

the page the link is on is
http://www.bookhead.net/books/Plan+o.../074325547X.as
px

When I click the link i get a page saying "bad request" - obviously the
site is an online bookstore. I show details of a book then show 5 similar
books - in a repeater pulled from sql server - each link is generated with
this code
<a href="/books/<%# server.urlencode(DataBinder.Eval(Container.DataIte m,
"title"))%> and so on to pull up author and ISBN. What's causing the bad
request here, I've never seen this error before. Is the link too long,
containing bad characters or what?

Any clues on this would be very much appreciated

Cheers,
Jon

Nov 18 '05 #1
1 1546
I seem to have narrowed this down to any url that includes a colon (:) which
server.urlencodes as %3a causes a bad request error

Any clues on this?

Cheers,
Jon

"Jon Spivey" <jo**@mvps.org> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Hi,

Here's a link on one of my sites
http://www.bookhead.net/books/Against+All+Enemies%3a+Inside+America's+War+on +Terror+Richard+A.+Clarke/ISBN/0743260244.aspx

the page the link is on is
http://www.bookhead.net/books/Plan+o.../074325547X.as px

When I click the link i get a page saying "bad request" - obviously the
site is an online bookstore. I show details of a book then show 5 similar
books - in a repeater pulled from sql server - each link is generated with
this code
<a href="/books/<%# server.urlencode(DataBinder.Eval(Container.DataIte m,
"title"))%> and so on to pull up author and ISBN. What's causing the bad
request here, I've never seen this error before. Is the link too long,
containing bad characters or what?

Any clues on this would be very much appreciated

Cheers,
Jon

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jack | last post by:
Hi, I am trying to get a thorough understanding of a code where a addition or deletion of records can be done from a list of records. For addition part of the form, data is being obtained from set...
4
by: SP | last post by:
Hi I have a problem with a customer's XML being submitting to me in a non-well-format XML. They said that there are 18 other partners who has been able to tweak the XML to make it work. So I...
7
by: Shapiro | last post by:
I have a scenario where I log a resquest to a database table and update the request with a corresponding response including the response time. I am using an HttpModule to do this. My challenge...
4
by: Nalaka | last post by:
Hi, I have some request specific data that gets created in a "early event", that I need to pass around to many other events. I need access to this data during that request. (and more importantly...
5
by: dougwig | last post by:
I'm trying to handle the scenario where a user's session times out and and their ajax request triggers a redirection by the webserver (302 error?). I'm using Prototype 1.4 and the my works great...
4
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
6
by: santhoskumara | last post by:
How to request to servlet from Ajax and also I got the DOM object in the servlet through Business Logic. Now how will i pass the DOM object from serlvet to Clientside. Where in the client Side i am...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
3
by: Joseph Geretz | last post by:
I'm using the Request Filter documentation which can be found here: http://msdn.microsoft.com/en-us/library/system.web.httprequest.filter.aspx In this example, two filters are installed, one...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.