Results 1 to 1 of 1
  1. #1
    jmorr212 is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default C# HttpURLConnection to java

    Hey all, im trying to recreate my own MSN messenger in java. im following this tutorial which is in c#[http://www.codeproject.com/KB/cs/cli...et_msnp9.aspx] on generating the client ticket. Anyway,
    Java Code:
    ServerRequest = (HttpWebRequest)HttpWebRequest.Create(uri);
    ServerRequest.AllowAutoRedirect = false;
    ServerRequest.Pipelined = false;
    ServerRequest.KeepAlive = false;
    ServerRequest.ProtocolVersion = new Version(1,0);
    That is the C# code used to set properties for a request, so far i have been able to port everything to java, except i'm unable to find how to set properties for a http request in java. any help/a link and i would be grateful =]
    Last edited by jmorr212; 02-24-2011 at 11:36 AM.

Similar Threads

  1. Replies: 21
    Last Post: 05-21-2009, 02:53 PM
  2. Replies: 4
    Last Post: 10-15-2008, 02:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •