Forum Discussion
CPlews
17 years agoNew Contributor
Hi Ole,
Below is the TcpTrace when using the Java program.
When one will not add any custom headers, it will have the same problem as the "boundary" will be missing.
Thanks
Sudeep
TcpTrace using Java:
===============
POST / HTTP/1.1
Content-Length: 886
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.0.1
Content-Type: multipart/related; type="text/xml"; boundary="----=_Part_0_729729216.1171462831125"
SOAPAction:
Authorization: Basic MTExMTExMTExL3N1ZGVlcDpsZW5vdm8xMg==
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
------=_Part_0_729729216.1171462831125
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Id:
helloworld9.txt Test Author cid:document=281199098048.1171462831109.IBM.WEBSERVICES@wpgserver
------=_Part_0_729729216.1171462831125
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Id:
Hello World!
------=_Part_0_729729216.1171462831125--
Below is the TcpTrace when using the Java program.
When one will not add any custom headers, it will have the same problem as the "boundary" will be missing.
Thanks
Sudeep
TcpTrace using Java:
===============
POST / HTTP/1.1
Content-Length: 886
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.0.1
Content-Type: multipart/related; type="text/xml"; boundary="----=_Part_0_729729216.1171462831125"
SOAPAction:
Authorization: Basic MTExMTExMTExL3N1ZGVlcDpsZW5vdm8xMg==
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
------=_Part_0_729729216.1171462831125
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Id:
------=_Part_0_729729216.1171462831125
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Id:
Hello World!
------=_Part_0_729729216.1171462831125--
Related Content
- 10 years agomurugans1011