{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
0
Question by sharique · Nov 15, 2015 at 02:41 PM · 2.2k Views apigee edgeapi proxytarget path urlqueryparams

how can i remove %2c from url, after inserted by ...AssignMessage?

Hi friends i am new to Apigee development.

I am making an API call with query parameters.

<Add>
  <QueryParams>
    <QueryParam name="GEOBOUNDS">29,-100,28,-111</QueryParam>
  </QueryParams>
</Add>

But after the call my commas got replaced by %2c i am getting this 29%2c-100%2c28%2c-111

how can i replace %2c with ','

i already tried replace method of javascript, but no success.

Please help

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
0

Answer by Dino   · Nov 23, 2015 at 07:52 PM

Hi @sharique

Can you explain what you mean by "after the call"?

At that point do you wish to unescape the %2C ? In the API Proxy? AFTER the outbound call has been made? What purpose would that serve? What problem are you encountering?

The comma is not a reserved character for query params, so it is not required that the comma be encoded when present in a query param. Nevertheless, JavaScript's encodeURIComponent() does encode the comma as %2C, and often browsers (such as the current Firefox) will also encode the comma. This shouldn't present a problem as backends can easily decode the parameters, as well.

Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sharique · Nov 25, 2015 at 02:39 AM 0
Link

Thanks @Dino,

let me explain my situation in a more clear way.

I am using an AssignMessage policy to add query parameters in any request url.

My request url with query parameters

Here now the apigee replaces ',' with %2C then sends the request url to target url.

i just want to remove %2C from the request url.

i tried

(1).replace in javascript file.

(2) decodeURIComponent

but no success.

thanks for your response.

avatar image Dino ♦♦ sharique   · Nov 25, 2015 at 03:22 AM 1
Link

Yes, I think I understand what you are asking. I am clear.

What I am telling you is:

The backend system needs to call decodeURIComponent() or the equivalent, on the inbound query string. The backend system is in error.

I understand what you want Apigee Edge to do: you want comma and not %2C. I am telling you that Apigee Edge is behaving normally and correctly, and it complies with the IETF specs. Your backend system is not correctly handling input which is valid. The backend needs to be corrected.

Follow this Question

Answers Answers and Comments

36 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Query Params conditionfor processing 2 Answers

it is possible to increase the compile size limit (64k) of JavaScript to 1024k ? 1 Answer

How to deploy multiple proxy End points in one proxy? 1 Answer

Oauth 2.0 password grant type is penetrated 0 Answers

net::ERR_INCOMPLETE_CHUNKED_ENCODING 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges