Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Method is not Supported for proxy. #169

Open
neerajshandilya opened this issue Nov 18, 2019 · 1 comment
Open

Post Method is not Supported for proxy. #169

neerajshandilya opened this issue Nov 18, 2019 · 1 comment

Comments

@neerajshandilya
Copy link

Hi,

I am running proxy server on SpringBoot 2.1.7.RELEASE
Proxy requests work fine for Get but is not working for Post.

What Should I do? I didn't found any working solution for that reason I open this thread once again.
Below is my proxy configure code. Am I missing anything ?

    public ServletRegistrationBean servletRegistrationBean2() {
        ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(new ProxyServlet(), "/kong/*");
        servletRegistrationBean.addInitParameter(ProxyServlet.P_TARGET_URI, "http://kong-iam-gateway.stb-openshift-app.nix.cydmodule.com");
        servletRegistrationBean.addInitParameter(ProxyServlet.P_LOG, "true");
        return servletRegistrationBean;
    }
@neerajshandilya neerajshandilya changed the title Post Method is noty Supportyed. Post Method is not Supported for proxy. Nov 18, 2019
@dsmiley
Copy link
Collaborator

dsmiley commented Mar 4, 2020

Did you figure this out? Surely others are posting data just fine. I don't have time to troubleshoot this for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants