Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing a cookie using a socket?  RSS feed

 
Max Tomlinson
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I do this? Pass a cookie to an HTTP request via a socket?:

String cookieData = "Cookie: SOMECOOKIE=0909214809248jfd";
java.net.URL url =
new java.net.URL("http://localhost:9080/ADCWeb/ibm_security_logout");
java.net.URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(cookieData);
wr.flush();

thanks
Max
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!