mitre / HTTP-Proxy-Servlet

Smiley's HTTP Proxy implemented as a Java servlet
Apache License 2.0
1.46k stars 555 forks source link

Proxy SOAP request, Headers not being forwarded #48

Open redsparklabs opened 9 years ago

redsparklabs commented 9 years ago

I have the proxy working with the exception of forwarding a SOAP request. A few headers are not being forwarded.

I am making my SOAP request via jquery.soap

$.soap({
    url: webServiceURL,
    type: 'POST',
    SOAPAction: 'GET_'+method,
    appendMethodToURL: false,
    data: soapEnvelopeHeader + soapBodyHead + params + soapBodyFooter + soapEnvelopeFooter,
    HTTPHeaders: {
      Authorization: 'Basic ' + btoa('username:password')
    },
    ...
});

The Authorization header and the SOAPAction headers are both being stripped.

I went through and logged the HeaderName as each header is being copied and they are getting stripped out before that point.

Any suggestions.

dsmiley commented 9 years ago

Weird. Well "before that point" would be your servlet container so perhaps some googling with the name of your servlet container & "Authorization header" would help.