• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP request stream created by HttpURLConnection

 
Nikhil Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to POST a request using HttpURLConnection and am using a packet sniffer to look at the actual HTTP request being sent to the server.
Just where the content is supposed to begin (after content-length line), I see a 70-char 'junk'. Can someone please help me understand the 70-char 'junk' that apparently HttpURLConnection is writing into the HTTP request between the HTTP message header and the content.
POST http://java.sun.com/cgi-bin/backwards HTTP/1.1
User-Agent: Java/1.4.1_01
Host: java.sun.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Proxy-Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 20
`W?� J J ^
G�m� E <M�@ ���
�)����h�p�P��x�P�q�� string=NikhilKumar
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't think of anything; might help if we saw your code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!