Results 1 to 4 of 4
  1. #1
    Ave Kar is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default sun.net.www.protocol.http.HttpURLConnection source code

    Hello,

    Does anyone know where to find the source code for sun.net.www.protocol.http.HttpURLConnection for JDK 1.6.0.25? I need to modify it to set the Proxy-Connection with keep-alive as part of the sendCONNECTRequest and I can't find the source code for JDK later then 1.6.0.06 which is the previous version that I'm trying to upgrade.

    Any help would be appreciated.

    Thanks

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default

    Any sun.xxx classes are Oracle proprietary, so you are unlikely to find the source code for them.

  3. #3
    Ave Kar is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default

    There is one place where I found the source code: sun.net.www.protocol.http.HttpURLConnection.java (Java SE 6 Source and Javadoc)

    I'm not sure as to legitimacy of javasourcecode.org, it does seem to compile with the jdk 1.6.0.25 though.

    Any ideas?

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default

    You are not supposed to change those classes.
    Pure and simple.
    You'll need to find another way to solve your problem.

Similar Threads

  1. HTTP POST Request (HttpURLConnection)
    By Dude in forum Networking
    Replies: 17
    Last Post: 07-15-2011, 11:11 PM
  2. source code
    By patel_op in forum Networking
    Replies: 0
    Last Post: 11-18-2010, 08:59 AM
  3. Replies: 4
    Last Post: 10-30-2010, 10:16 AM
  4. Replies: 1
    Last Post: 08-25-2010, 10:07 AM
  5. Replies: 1
    Last Post: 11-28-2008, 06:27 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
  •