Https


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Https

  1. #1
    Join Date
    Feb 2008
    Posts
    11

    Https

    Hi All

    i have a code of simple proxy server which is working well for Http.Now i want to develop a https proxy server.And i have no idia about that,can any one give me example link or example code or tips.

    Thxs in Advance

  2. #2
    Join Date
    Feb 2008
    Posts
    11

    Http

    Hi all

    I have found some code of Https proxy Server.But it is not runing plz any one help me.Here Is code

    Code:
    import java.net.HttpURLConnection;
    import java.net.URL;
    
    import javax.net.ssl.HttpsURLConnection;
    
    public class HttpsTest
    {
      public static void main( String[] args )
      {
        HttpURLConnection con = null;
        try
        {
          HttpsURLConnection.setDefaultAllowUserInteraction( true );
          HttpsURLConnection.setFollowRedirects( true );
          System.setProperty( "javax.net.debug", "all" );
          // please correct the proxy settings and request URL accordingly to your environment
          System.setProperty( "https.proxyHost", "nimdenbus" );
          System.setProperty( "https.proxyPort", "3128" );
          URL url = new URL( "https://amrum.devel.pago.de/redirect.php" );
          con = ( HttpURLConnection )url.openConnection();
          con.getInputStream();
        }
        catch( Exception e )
        {
          e.printStackTrace();
        }
        finally
        {
          if( con != null )
          {
            System.out.println( "Using proxy: " + con.usingProxy() );
          }
        }
        System.exit( 0 );
      }
    }

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    What do you mean by "it isn't running"?

    What happens, or doesn't happen, when you use that code?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 0
    Last Post: 06-11-2007, 10:13 AM
  2. how to use HTTPS
    By Mow in forum ASP.NET
    Replies: 1
    Last Post: 06-24-2002, 02:08 AM
  3. Is the initial https: request secure?
    By Brit in forum Security
    Replies: 1
    Last Post: 03-20-2002, 07:20 PM
  4. Wininet - HttpSendRequest fails for HTTPS.
    By Simon Reeve in forum VB Classic
    Replies: 4
    Last Post: 11-09-2001, 05:39 AM
  5. Wininet - HttpSendRequest fails for HTTPS.
    By Simon Reeve in forum VB Classic
    Replies: 0
    Last Post: 11-08-2001, 04:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center