Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting a SOAP UI SOAP request to curl - curl via mitmproxy works

Well, basically that's my question. I honestly don't know what using mitmproxy results in a successful request.

Here's what I did:

  • Created a request from WSDL and was able to query the server successfully
  • Recreated that request using curl. I tried my best to create the same request as soapui does and by inspecting the request using ngrok and requestb.in but it still failed.
  • I tried mitmproxy because why not and I am running out of ideas and it worked!

I really don't know what's going on. Why using mitmproxy made it work.

like image 535
Francis Zabala Avatar asked Oct 09 '15 10:10

Francis Zabala


People also ask

Can I use cURL for SOAP request?

cURL is a popular library for submitting HTTP requests. It may be used from the command line or via bindings to various scripting languages such as PHP. SOAP client libraries such as nuSOAP use cURL as the underlying HTTP client.


1 Answers

Ok, it think I found out what happened.

Using mitmproxy "cleans" white spaces in my request. That is why I was successfully getting a response from the server.

This was the culprit:

 --header "SOAPAction: \"http://myurk.com/soap/queryRequest\" "

Notice the space I have between \" and "? Removing that whitespace got it working. Mitmproxy probably cleaned that out for me.

like image 112
Francis Zabala Avatar answered Oct 23 '22 14:10

Francis Zabala