473,320 Members | 1,881 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,320 software developers and data experts.

%23 and #, which should I be worried about?

Hi,

I'm using the '#' character to concatenate some information to the
URL. For example:

filtrado3.jsp?estatus=Certificado&valor=Certificad o&campo=estatus&ca=ejecutivo#tipo&va=Daniel+Perez# CONC.

But, when I see the URL, it's something like this:

filtrado3.jsp?estatus=Certificado&valor=Certificad o&campo=estatus&ca=ejecutivo%23tipo&va=Daniel+Pere z%23CONC.

I must access to "ca" and "va" values. I've been considering that the
real character is '#', but nothing happens. And, when I try to
consider the "%23" string, nothing happens. What am I doing wrong?

TIA.
Jul 23 '05 #1
4 1538
I'd stop using # or you're gonna have to decode the url. Certain
characters are encoded by the browser when they are placed in an url.
Like I think space is %20. Try using dash(-) or '.'

Jul 23 '05 #2

"Omar" <ro*****@yahoo.com> wrote in message
news:8b**************************@posting.google.c om...
Hi,

I'm using the '#' character to concatenate some information to the
URL. For example:

filtrado3.jsp?estatus=Certificado&valor=Certificad o&campo=estatus&ca=ejecuti
vo#tipo&va=Daniel+Perez#CONC.
But, when I see the URL, it's something like this:

filtrado3.jsp?estatus=Certificado&valor=Certificad o&campo=estatus&ca=ejecuti
vo%23tipo&va=Daniel+Perez%23CONC.
I must access to "ca" and "va" values. I've been considering that the
real character is '#', but nothing happens. And, when I try to
consider the "%23" string, nothing happens. What am I doing wrong?

In URL parlance, the '#' denotes a location within the page, so this
is an invalid URL (my opinion ;-))
I don't see why you need the '#' anyway, so why?

Hex 23 is the '#' character in ASCII.
Are you saying it is not there so nothing happens?
If it is there, how do you try to access it?
Jul 23 '05 #3
Robert wrote:

[Quotation added. Please quote relevant
material when responding to a post.]
Omar wrote:
I'm using the '#' character to concatenate some information to the
URL.


I'd stop using # or you're gonna have to decode the url. [...] Try
using dash(-) or '.'


There are several characters that the OP could choose from. Hyphens (-),
underscores (_), dots (.), exclamation marks (!), tildes (~), asterisks
(*), apostrophes ('), and parentheses () are all considered to be
unreserved within URLs. A hash (#), however, is reserved for separating
the fragment identifier and the rest of the URL.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #4
Omar wrote:
I'm using the '#' character to concatenate some information to the
URL.
You are not allowed to. According to RFC 2396 "Uniform Resource
Identifiers", the `#' character delimits the fragment ID in an URI.
Unless there is a fragment with that ID in the target resource
addressed by the URI, it must not be used (uncoded). Use query part
components for that instead, delimited with `&' and encoded properly.

I wonder what this has to do with JavaScript or Java.
And do you know that those are different languages?
I must access to "ca" and "va" values. I've been considering that the
real character is '#', but nothing happens. And, when I try to
consider the "%23" string, nothing happens. What am I doing wrong?


You do not take heed of Internet standards.
PointedEars
Jul 23 '05 #5

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
28
by: grahamd | last post by:
Who are the appropriate people to report security problems to in respect of a module included with the Python distribution? I don't feel it appropriate to be reporting it on general mailing lists.
0
by: Noons | last post by:
http://www.securitytracker.com/alerts/2003/Oct/1007956.html I'm *so* worried about a security advisor that includes a problem detected in oracleO... <sigh> :) Cheers
3
by: nrhayyal | last post by:
Hi All, thanks for reading this post. just wanted to know about the ratio of threads and processors. i am working on c++ on AIX5.2 platform. my c++ program are multithreaded programs. In a...
2
by: SS | last post by:
I've built a class to broker the data in may application. In other words, when my business logic needs a list of widgets in the db, it calls mybrokerclass.getWidgetList, which might return a...
2
by: Ulrich Wisser | last post by:
Hello, yesterday I took our database down and started in single user mode. After reindexing of three tables I thought a vacuum would be a good idea. backend> VACUUM FULL VERBOSE ANALYZE...
61
by: norb1 | last post by:
After tracking down a bug in my Fortran program, I found that it assumed max(NaN,0.) = 0. This makes no sense, as the outcome of the operation is undefined and should be NaN. max(NaN,0.) = NaN...
2
by: alex | last post by:
Hello Friends, Please go through the text. Bill Gates thinks Google should be worried! ------------------------------------------- You must have heard by now about Agloco and how many people...
4
by: alex | last post by:
Hello Friends, Please go through the text. Bill Gates thinks Google should be worried! ------------------------------------------- You must have heard by now about Agloco and how many people...
4
by: firewoodtim | last post by:
I have a set of php scripts that make it possible for a client to build and update his/her own website. It is a bit like a CMS on steroids. the client has access to forms, but does not have...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.