473,567 Members | 2,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

%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?e status=Certific ado&valor=Certi ficado&campo=es tatus&ca=ejecut ivo#tipo&va=Dan iel+Perez#CONC.

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

filtrado3.jsp?e status=Certific ado&valor=Certi ficado&campo=es tatus&ca=ejecut ivo%23tipo&va=D aniel+Perez%23C ONC.

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 1554
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.goo gle.com...
Hi,

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

filtrado3.jsp?e status=Certific ado&valor=Certi ficado&campo=es tatus&ca=ejecut i
vo#tipo&va=Dani el+Perez#CONC.
But, when I see the URL, it's something like this:

filtrado3.jsp?e status=Certific ado&valor=Certi ficado&campo=es tatus&ca=ejecut i
vo%23tipo&va=Da niel+Perez%23CO NC.
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
17490
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. Yahoo store was originally written in Lisp. c. Emacs The issues with these will probably come up, so I might as well mention them myself (which...
28
2774
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
1187
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
2118
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 multithreaded application,should no of processors be equal to no of threads ? if we set the thread_scope to system( meaning 1 kernel thread to 1
2
3018
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 collection or arraylist of widgets. This way, the business logic doesn't care about where the data comes from. (BTW, this is a web application) So...
2
1260
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 WARNING: Index pg_statistic_relid_att_index: NUMBER OF INDEX' TUPLES (163) IS NOT THE SAME AS HEAP' (345). Recreate the index. WARNING: Index...
61
8588
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 After researching, it appears the first outcome is accepted behavior, and might be included in the revised IEEE 754 standard, which affects
2
2128
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 think it is going to be bigger than Google... Now Bill Gates is on record saying they have a great business model and that Google should be worried.
4
1746
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 think it is going to be bigger than Google... Now Bill Gates is on record saying they have a great business model and that Google should be worried.
4
1205
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 access to the command line on the web server. I've implemented a number of security features - filtering input, escaping output - but I can't get a...
0
7590
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7905
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7651
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6272
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5216
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3648
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3630
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.