Use proxy to connect the net

I want to use php on the internet by using JAVA programme to post my request.So i used URLConnection and everything is ok.But when i use this programm on the computer which connect Internet by proxy server and the programm doesn't work.How can I do this? Is there any thing in Java to set the proxy?

Thanks for your help.Now i have to set up the user and the password.So i use the code:
System.getProperties().put( "proxySet", "true" );
System.getProperties().setProperty( "http.proxyHost",proxyServer);
System.getProperties().setProperty( "http.proxyPort",proxyPort);
URL url=new URL("http://www.sun.com");
URLConnection connection = url.openConnection();
String proxyUser = "jsf";
String proxyPass = "jsf";
String input = proxyUser+":"+proxyPass;
String authen = new sun.misc.BASE64Encoder().encode(input.getBytes());
connection.setRequestProperty("Proxy-Authorization","Basic "+authen);
connection.connect();
connection.setDoOutput(true);
But this does not work.Please help me

Similar Messages

  • When using the migrate tool to migrate from windows to mac, can you use ethernet to connect the computers to each other?

    When using the migrate tool to migrate from windows to mac, can you use ethernet to connect the computers to each other? In the Migration tool, I was only given the option of choosing the computer when it appeared on the same network, and didn't see an option to connect them to each other. Even though they're both connected to the same network with a wired connection, the migration is painfully slow.

    Yes. The following quotation is from About Windows Migration Assistant
    These are the preferred network connections, in order:
    Use a CAT6-certified Ethernet cable that is in good condition to connect the Ethernet port of the PC directly to the Ethernet port of the Mac or Ethernet adaptor (USB or Thunderbolt). You shouldn't use an Ethernet cable that has any kinks in it or is missing connector tabs.
    Use CAT6-certified Ethernet cables that are in good condition to connect the Mac and PC to your home network router/hub/switch. You shouldn't use an Ethernet cable that has any kinks in it or is missing connector tabs.
    For wireless, use the fastest wireless signal possible (802.11n 5Ghz). Try to have the PC, Mac, and the wireless access point all in the same room close to each other.

  • Config Entity Framework to use proxy to connect to the server

    Hi,
    I have my desktop application that use EF6. So the connection failed when I use the proxy.
    Also for skype or browsers but I just config the proxy on setting and there will work fine.
    So how to configure the proxy for EF6 to add proxy setting to my application ? Is there automatique way to get proxy configuration from Internet Explorer automatically ?
    Thanks.

    Hello,
    >> So how to configure the proxy for EF6 to add proxy setting to my application ?
    I am not quite understand what you mean about connecting the Entity Framework with a proxy. As far as I know, the Entity Framework is a ORM item in Visual Studio, we need to host it to applications as Console, windows form and others.
    >> Is there automatique way to get proxy configuration from Internet Explorer automatically ?
    This seems to be more related with Internet Explorer, you might get an answer form the
    Internet Explorer forum.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HELP REQUIRED:Want to use my N79 & browse the net ...

    I have recently bought an N79. When I connect it to my laptop through the supplied cable the nokia PC suite says that "S60 device connected through a non-compaitble mode". I want to browse the net on my laptop using my cellular provider's GPRS service while connected through the supplied USB cable. Can anyone help?
    Solved!
    Go to Solution.

    Hi there
    You need to make sure when you connect the device that it is connected in PC Suite mode. When the cable is plugged in it should ask you which mode you would like to use. If it does not ask you then you need to go to:
    Menu>tools>connectivity> USB and select "ask on connection" YES
    Once connected in Pc suite mode the necessary drivers will install and you can connect to the net on the computer through the N79-1 using Pc Suite.
    Hope this helps  
    iPhone 5 32GB
    MacBook Pro Retina 15" Mac OS X Mountain Lion 10.8.4

  • Use proxy to connect to internet

    Hi,
    Is it possible to connect to internet using proxy inside adobe air app? Before connecting to internet,I have to configure first the proxy credentials and the adobe air now will connect to internet?any idea?
    not to configure the OS proxy.
    any code sample?
    thanks a lot.
    cheers.

    You can instruct Java to use, say, a HTTP proxy.
    http://www.cafeaulait.org/javafaq.html#proxy

  • I have windows 7 and firefox 3.6.6 i use manual proxy to surf the net, but each time i close the browser , the manual proxy deleted from firefox then i need to put it again ?

    on windows Xp i don't have this issue.

    i would like to make my connection on i tunes store with firefox. but i couldn't arrange it on the firefox.
    Sorry, but it iTunes requires Safari, not Firefox.
    Click your Apple menu / Software Update.
    That should bring Safari up to date for you.
    Safari 4 is for Tiger.
    If you can't update Safari from the Apple menu, try here  >  Safari 5.0.6 for Leopard

  • -How to use JDBC to connect the SQLServer and Oracle.

    Hi,
    I create a table in the WIP DB, I want to modify this table when use "PRE-START" activity in POD.
    SAPME version: 5.2.3.4     SDK:2.0    DB:SQL2005 and Oracle 10.2g
    SourceCode like below:
    public void execute(StartHookDTO dto) throws Exception {
              initServices();
              try{
                   Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                   Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=SAPMEWIP", "sa" ,"sap12345");
                   conn.close();
              }catch(Exception e){
                   e.printStackTrace();
    Besides, I already setup the JDBC ClassPath in ConfigTool, but it gets somes error when executing.
    the error code like below:
    java.sql.SQLException: No suitable driver
    Please give me some support or a example, thank you so much!
    Br,
    Alex

    You probably want to use the WIP Datasource defined in JNDI.

  • HT4904 imac 24-inch, Early 2009 can use hardware test over the net?

    My imac keeps freezing on me over the more trivial things like youtubing or running apps I got for my toddler son. It's frustrating and I don't know if my hardware si to blame.
    Can I run hardware test ove rthe web since I'm using mountain lion now?
    Also It seems like this is already addressed but the fix doesn't fix it because al alredy have it installed:
    About iMac EFI Firmware Update 1.4
    This update fixes intermittent system freeze issues for iMac computers with ATI Radeon HD 4850 graphics and fixes wake-from-sleep issues in Boot Camp.

    Also I want to point that they had this problem before : https://discussions.apple.com/thread/1978213?tstart=0
    It was fixed with the new firmware but since I updated to Lion the problem started for me. Does you knwo if they eill release a new firmware update that takes care of the problem now?

  • HT6114 i am not able to connect the net through wifi

    in the network pane , no wifi is notified.
    please help me

    Troubleshooting Wi-Fi issues in OS X
    Wireless Connection Problems - Fix
    Wireless Connection Problems - Fix (2)
    Wireless Connection Problems - Fix (3)
    Wireless Connection Problems - Fix (4)
    Wireless Diagnostics - About
    Also try turning off Bluetooth

  • I have increasing problems using Firefox to surf the net. I cannot install ANY Adobe product. I have no ability to see and hear ANY videos. Today I cannot access the Earthlink website, although I can on Internet Explorer.

    I always get error message such as my plug-ins are disabled or I need the newer version of Adobe or Java programs. When I download and install them, they do not work and I get the same error messages.

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • How can I use iTunes without connecting the external drive that has all my music on it?

    I have all my music on an external drive.  Sometimes I would like to access iTunes, for purchases and other, without having that drive plugged in.  I used to be able to do this, but something has changed and I can no longer figure out how.  There must be a way.
    Thanks

    Well, you can always ignore the fact it will automatically direct anything to a new blank library it will create on the internal drive.  Just let it do it (as long as you keep track of any purchases that download, or maybe you can turn off automatic downloading )  The next time you need to use it with the external drive hold down the option/alt key while starting iTunes and select the library file on the external drive.
    iTunes Store: How to enable Automatic Downloads - http://support.apple.com/kb/HT4539

  • Can java use proxy to connect internet?

    My program works in an intranet environment. Can I add proxy into my program to access internet?

    You can instruct Java to use, say, a HTTP proxy.
    http://www.cafeaulait.org/javafaq.html#proxy

  • My Mac Book Pro is slow and at times I have to reboot to connect to the net

    My Mac Book Pro is slow and at times I have to reboot to connect the net.  Also wondering how do I check if my software is up to date?  Thank you.

    To check to see if your software is up to date, go to >Software Update and you can check for updates.
    No idea why your Mac is slow--there could be a variety of things that could cause slowness. A good start would be to see if all your RAM is recognized. >About this Mac will show you how much RAM you have. You can also open Activity Monitor and check your RAM usage.
    Also, how full is your hard drive? You should have a minimum of 10% free space for the OS to operate properly, and 15% to 20% is better.
    No idea why you have to reboot to connect to the internet, but it could be related to the slowness. Rebooting will free up RAM among other things.
    Which MBP do you have and which version of the OS are you running?

  • How can I connect my mobile web browser using my computer connection

    I want to know if there is a way to connect to the internet mobile browser using my computer bluetooth, Its not my mobile connecting the internet for my computer its the other way around. I want to connect the net mobile phone through the bluetooth computer bandwith.

    One day with no response and you're whining? That's pathetic.
    And, you have likely received no response because the 'internet sharing' technology you are looking to employ is not explicitly supported by Mac OS X. It is not widely understood by users, as well. Some developers, notably Mark/Space, have written routines to enable internet sharing with selected smartphones, but they do not support conventional mobile handsets.
    If you use a Palm device or a pre-Windows Mobile 5 device, you can enable this technology by installing the appropriate Missing Sync package. Internet sharing is not supported by Windows Mobile 5 or later, or by the Blackberry OS.

  • Proxy user connection in oracle form10g

    Dear All,
    Any one could help me out how to use proxy user connection in oracle form10g ?
    proxyapp[SCOTT]/proxyapp@orcl which is running fine is database side i like to use this user in oracle forms 10g and would like to know the syntax of connection .
    Thanks & Regards
    zeeshan

    Do you know if there is there anyway to use proxy users without using OAM? It is working fine for us assuming the combined prox_user[real_user] does exceed 30 characters .... Need to expand the forms user id field ...???

Maybe you are looking for

  • Chart colours in numbers for iPad.

    Why is it that when I create a new spreadsheet using templates, do I get different colour options for charts etc? I don't see any theme settings and I can't find any way to change the colours to the ones I like. If I create a spreadsheet from the bla

  • Sending mail to a large group

    I have a large group in my address book and tried to mail a message to the group - it appears to have crashed it. Is there a limit? Is it about my internet connection?

  • Double click on JTree!

    hi, i have a very nice tree with leafs and nodes, now i want to show a dialog with information every time the user double clicks in a tree leaf... anyone thanks in advance

  • Create NT Group Failed

    Hi There, On OutlookSoft 4.2 SP6 I have restored a backup on a new server, and all processed fine. I have changed a user on eAdmin for the user, and try to process the user sheet again, but get the following error. CreateNTGroups:Failed to create ""W

  • Safari 3.1.2 Won't Open

    Morning Everyone, I've been starting to see some issues with my mac after updating to 10.5.4. I'm currently running Safari 3.1.2, although I can't even get the window to open. While it was working after the update to 10.5.4., I was having to shut it