You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by zinedine <as...@avaya.com> on 2011/05/19 13:44:40 UTC

Can I send a . in a URL?

Hello,

I have to test a REST URL of this type /customer/email/test@example.com.
But as I have seen, there is a problem with the . character. If I have an
email address without . , it works fine, but if I have a regular email
address with a . in it, the response is

 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body>
HTTP ERROR 404

<p>Problem accessing /customer/email/test@example.com. Reason:
<pre>    Not Found</pre></p><hr /><small>Powered by Jetty://</small><br/>  

What can I do in this case so I can get a customer by a regular email
address?

Thank you

--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-I-send-a-in-a-URL-tp4409448p4409448.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Can I send a . in a URL?

Posted by zillakilla <zi...@sogetthis.com>.
Try this:
/customer/email/'test@example.com' 

ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-I-send-a-in-a-URL-tp4409448p4411935.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Can I send a . in a URL?

Posted by David Patrick <da...@mac.com>.
Could you try escaping the period character out in some way?

Sent from my iPhone

On 19 May 2011, at 12:44, zinedine <as...@avaya.com> wrote:

> Hello,
> 
> I have to test a REST URL of this type /customer/email/test@example.com.
> But as I have seen, there is a problem with the . character. If I have an
> email address without . , it works fine, but if I have a regular email
> address with a . in it, the response is
> 
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
> <title>Error 404 Not Found</title>
> </head>
> <body>
> HTTP ERROR 404
> 
> <p>Problem accessing /customer/email/test@example.com. Reason:
> <pre>    Not Found</pre></p><hr /><small>Powered by Jetty://</small><br/>  
> 
> What can I do in this case so I can get a customer by a regular email
> address?
> 
> Thank you
> 
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Can-I-send-a-in-a-URL-tp4409448p4409448.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Can I send a . in a URL?

Posted by sebb <se...@gmail.com>.
On 20 May 2011 12:41, zinedine <as...@avaya.com> wrote:
> I tried adding a \ in front of the . , it didn't work.
> Also when I am using an email address that doesn't contain a . , like
> test@example it works, but when I add .org I receive the '404 not  found'
> error...

In that case either the application is broken, or you are using it
incorrectly, because . is definitely valid in a URL.

This is really nothing to do with JMeter, which will use the URL that
you provide.
You just need to provide the correct URL.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Can I send a . in a URL?

Posted by Deepak Shetty <sh...@gmail.com>.
Just to confirm its only jmeter that fails a request made by a browser or
http tool works i.e. your app doesn't have a bug
On May 20, 2011 4:41 AM, "zinedine" <as...@avaya.com> wrote:
> I tried adding a \ in front of the . , it didn't work.
> Also when I am using an email address that doesn't contain a . , like
> test@example it works, but when I add .org I receive the '404 not found'
> error...
>
> --
> View this message in context:
http://jmeter.512774.n5.nabble.com/Can-I-send-a-in-a-URL-tp4409448p4412364.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

Re: Can I send a . in a URL?

Posted by zinedine <as...@avaya.com>.
I tried adding a \ in front of the . , it didn't work. 
Also when I am using an email address that doesn't contain a . , like
test@example it works, but when I add .org I receive the '404 not  found'
error...

--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-I-send-a-in-a-URL-tp4409448p4412364.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Can I send a . in a URL?

Posted by sebb <se...@gmail.com>.
On 19 May 2011 19:19, Deepak Shetty <sh...@gmail.com> wrote:
> I checked and i think its @ which is the special character (should be %40)

Agreed, period is clearly allowed on URLs, e.g. index.html, the only
reserved character mentioned in the specs I could find is the @
character.

Tests with a browser and JMeter appear to show that @ can be sent
without problems.

However

/customer/email/test@example.com

is unlikely to represent a valid path unless the application has some
special processing defined, e.g. a servlet that handles all requests
to  /customer/email/*

Normally parameters such as an e-mail address are provided as part of
the search path, e.g.

/customer/email?id=test@example.com
or
/customer?email=test@example.com

I suggest you double-check the syntax supported by the REST application.

And try using a browser to send the URL.

> regards
> deepak
>
> On Thu, May 19, 2011 at 8:36 AM, Deepak Shetty <sh...@gmail.com> wrote:
>
>> Url s must use the percentage sign character code notation.
>> On May 19, 2011 5:15 AM, "zinedine" <as...@avaya.com> wrote:
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Can I send a . in a URL?

Posted by Deepak Shetty <sh...@gmail.com>.
I checked and i think its @ which is the special character (should be %40)

regards
deepak

On Thu, May 19, 2011 at 8:36 AM, Deepak Shetty <sh...@gmail.com> wrote:

> Url s must use the percentage sign character code notation.
> On May 19, 2011 5:15 AM, "zinedine" <as...@avaya.com> wrote:
>

Re: Can I send a . in a URL?

Posted by Deepak Shetty <sh...@gmail.com>.
Url s must use the percentage sign character code notation.
On May 19, 2011 5:15 AM, "zinedine" <as...@avaya.com> wrote:

Re: Can I send a . in a URL?

Posted by zinedine <as...@avaya.com>.
I tried, it doesn't work like this...

--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-I-send-a-in-a-URL-tp4409448p4409530.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Can I send a . in a URL?

Posted by zillakilla <zi...@sogetthis.com>.
Try this:
/customer/email/test@example\.com


ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-I-send-a-in-a-URL-tp4409448p4409513.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org