Yes, I use wildcards in my app.yaml, and on my local the URL is passed to
my application, and my application will handle more detailed routing logic.

I found a walk around, and it looks weird...

On the client, in JS code, I double encode "TEST with slash / a slash",
using "encodeURIComponent", then this request can be passed to my
application. I have tested it both on my local and online environment.

You can take a look at
http://davidshen84.appspot.com/blog/2014/3/How%2520to%2520disable%2520Hibernate%2520in%2520Windows%25207%252F8




On Wed, Mar 19, 2014 at 1:21 PM, Vinny P <[email protected]> wrote:

> On Tue, Mar 18, 2014 at 10:07 PM, Xi Shen <[email protected]> wrote:
>
> I am working with app engine 1.9.0. On my local environment, below URL
>> works fine:
>>
>> http://localhost:8080/blog/api/sync/
>> *TEST%20with%20slash%20%2F%20a%20slash*
>>
>> Notice the bold part after decoded is "TEST with slash / a slash".
>>
>> In my application, this URL request is send to my application. But in
>> online environment, this request is not send to my application. The request
>> is handled by app engine directly and returned 404. I think the problem is
>> related to the encoded slash.
>>
>
>
> How are you mapping your URLs in app.yaml? As long as you're using
> wildcards appropriately, this URL should still work and be routed through
> your application.
>
> As a side note, this looks to be an API endpoint. If you need to pass
> through data to your API, it may be better to wrap "TEST with slash" inside
> a JSON object and POST it to the API, instead of adding it to the URL.
>
>
> -----------------
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/7ty9Df-wlec/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
David Shen

http://about.me/davidshen
https://twitter.com/#!/davidshen84

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to