Bad Request?

  • Thread starter Thread starter Jon Spivey
  • Start date Start date
J

Jon Spivey

Hi,

Here's a link on one of my sites
http://www.bookhead.net/books/Against+All+Enemies:+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+of+Attack+Bob+Woodward/ISBN/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.DataItem,
"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
 
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
 
Back
Top