title: Difference between string in the request header and a cookie in urlconnection
body: <p>we all know that a string is the request header is different from cookie. Now I am trying to send a cookie to server using URL connect. As you know there is no property like set cookie in URL connect, i am using addRequestProperty("iPlanetDirectoryPro", iPlanetDirectoryPro); Now will this be a cookie or a string the request header?</p>
  
  <p>Now at server side if i add request.getCookies(); I will not get any cookies. But if i do request.getHeader("iPlanetDirectoryPro") then i will get my string. So how can i send the cookie?</p>