Results 1 to 1 of 1
Thread: C# HttpURLConnection to java
- 02-24-2011, 10:29 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
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,
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 =]Java Code:ServerRequest = (HttpWebRequest)HttpWebRequest.Create(uri); ServerRequest.AllowAutoRedirect = false; ServerRequest.Pipelined = false; ServerRequest.KeepAlive = false; ServerRequest.ProtocolVersion = new Version(1,0);
Last edited by jmorr212; 02-24-2011 at 10:36 AM.
Similar Threads
-
How do you get and set cookies with HttpURLConnection
By J-Live in forum NetworkingReplies: 21Last Post: 05-21-2009, 01:53 PM -
how to POST data to server using HttpURLConnection ??
By dhana in forum NetworkingReplies: 4Last Post: 10-15-2008, 01:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks