{ 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 /
  • Developer Portal (Drupal-based) /
avatar image
2
Question by nmathew · Jan 30, 2017 at 09:06 PM · 982 Views tracepostfilteringcontent-typehttp header

Trace - Filter Post Requests using HTTP Header - Content-Type - application/json

Couple of months ago, whenever I needed to look at only the post requests during a trace session, I would set an HTTP Header Filter with Name "Content-Type" and value "application/json".

This seems have stopped working now, and it returns no results even though I made sure to make some requests that match the filter condition.

I think it has something to do with the forward slash in the value. So I tried supplying it URL encoded as 'application%2Fjson' without luck.

I am sure it used to work. So some recent change must have broke it.

Any suggestions or alternatives to filter post requests will be much appreciated.

screen-shot-2017-01-31-at-73909-am.png (85.9 kB)
Comment
Add comment Show 1
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 nmathew · Jan 30, 2017 at 09:57 PM 1
Link

Just found that the "Value" field is getting URL-encoded before 'string' compared to the actual http header. Because of this application/json becomes "application%2Fjson" and this string is being compared to the actual HTTP Header value without URL-encoding it.

I confirmed this by setting "Content-Type" as "application%2Fjson" in a request from postman.

The filter as shown in the image did capture that request.

I am sure this bug was introduced recently because earlier I was able to use this filter without issues. Where to file a bug ?

Close

2 Answers

  • Sort: 
avatar image
2
Best Answer

Answer by coverbeck · Feb 24, 2017 at 07:18 PM

@nmathew ,

Apologies for the very belated answer.

You are right, this is a bug and we have a fix pending for it. I will let you know when the fix has been deployed to the cloud.

Comment
Add comment Show 1 · 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 nmathew · Feb 24, 2017 at 10:06 PM 1
Link

Awesome. Looking forward to it. Thanks a million !

avatar image
0

Answer by coverbeck · Mar 02, 2017 at 06:13 PM

@nmathew

This should be fixed in the cloud now. You should be able to just enter "application/json" in the UI, and encoding will work properly. Let us know if there are any issues.

Comment
Add comment · 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

Follow this Question

Answers Answers and Comments

42 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Response steps not shown/executed while tracing 1 Answer

Request to Apigee never being sent to backend service 1 Answer

What is the best way to document POST-body parameters? 2 Answers

Does "similar to" work? 1 Answer

Dispersion "not applicable when there is only one proxy"? 4 Answers

  • 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