How to make my URLConnection through proxy(need authentication)
Hi...
we are writing a net program behind the firewall,and the proxy server need authentication(you have to input your id,pswd and the domain where you are), so, our URLConnection cant reach the outside of the firewall.
Is there any solution???
For HTTP:
Check for example http://forum.java.sun.com/thread.jsp?forum=31&thread=360245
Similar Messages
-
I cannot get an unlocked version of drivesafe.ly to operate on any accounts on my iphone 4S and have had no help when I asked them for support. I am now trying to figure out how to refund the product. Anyone know how to make that request through itunes?
Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.
-
How to make backwards navigation through slide shows possible?
Hi, I just made my first Encore DVD slide show and spent hours trying to figure out how to do this without a luck. The DVD is one Main Menu with buttons to different slide shows that are all set to manual advance. The end action of each slide show takes to the first image in the next slide show and that was easy and very obvious to achieve in Encore but I didn't find any way to achieve the same for backwards navigation. Does anybody know how to do that.
Will appreciate any helpIn case my message wasn't clear, I will try to describe better what I want to achieve.
Currently the viewer starts from a Main menu with 16 buttons linked to 16 slide shows. Starting from the first or any slide show and pressing the next button after an image is displayed, the viewer can see linearly all images in all slide show from that point to the end without ever going to the main menu.
However if the viewer at any point start pressing the previous button on the remote control, he/she can only go to the start of the current slide show and the only way to get to a previous slide show is to use the Main menu button and then jump from there.
Is it possible to make a DVD thata will allow the view to go backwards through different slide shows by pressing the previous button?? -
How to make the SQVI through the linking of 4 tables
I have a document no.i.e.9300801724.
I am getting the Internal No ( DOCNO ) from J_1IPART2 by put the doc.no.9300801724,then,I am putting the Internal no. ( DOCNO ) into J_1IPART1 and get the output of Material Document (MBLNR).Third,I am using the table,SE16-MSEG,and getting the Purchase Order (EBELN ) by given the input of Material Document i.e. already got from J_1IPART1.Now,I want to make the SQVI of all these 3 tables with including a new table of BKPF sothat I could get document no. ( BELNR ) from BKPF.
Now,the summary are:-
1-J_1IPART2
Input-FAWREF Output-DOCNO
2-J_1IPART1
Input-DOCNO Output-MBLNR
3-MSEG
Input-MBLNR Output-EBELN
4-BKPF
Final output should be BELNR
Is it possible to get all the datas from making the SQVI of above 4 tables?
Regards
Pradeep Kumar GuptaHi,
This can be achived through info set query. Below are the steps to create the info set query.
1. first create SQ03 user group to which query will be assigned
2. create infoset SQ02 and select the table and fields required for the output but ensure that there should be common field in each table you are using. system will show you the graphical display of table linkages.
3. Assign usergroup to infoset
4. Create query using SQ01 system will prompt you to select the info set and user group created in the above steps to select.
5. Give the desired name in description and select the basic list icon to select the field that need to be displayed in the output.
Hope it is clear and useful
Regards,
JB -
How to make itunes play through all 5 of my surround sound speakers?
Hi,
I'm new so hello everyone
Received some very nice 5.1 surround sound Logitech x-530 speakers this Christmas and they are absolutely brilliant. I tried them with a DVD and the surround sound is really good. However, I can't seem to get all the speakers to play my music through itunes, i.e. only 2.1 stereo sound is played through the 2 front speakers and subwoofer. I understand that this is because MP3 is recorded in stereo sound and so only plays through 2 speakers, but I'm hoping that there is a simple way to do what is described in a similar thread here:
http://discussions.apple.com/thread.jspa?messageID=817792󇪀
The answer to my problem is described as "Rear speaker cloning", i.e. playing the same music through the rear speakers as the front. However this is from almost 5 years ago so I'm hoping that there is now a clearer solution to my problem- could I even solve my problem simply through itunes preferences? Or do i need a specific program/driver?
My "Soundmax" sound card came bundled with my ASUS P5N32-E SLI Plus mobo, if it's any help.
Many thanks in advance. I would really appreciate any help or advice.Hi
Please find the links given below might help you to resolve your issue.
Resolving Microphone Problems
No Sound from the Speakers
Let us know how it goes!
"I work for HP."
****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
****Please mark Accept As Solution if it solves your problem****
Regards
Manjunath -
Send a request using Http(s)URLConnection through proxy issue
Hi all,
Here are system environment,
OS: Ubuntu 12.04
Java version: 1.6.0_27
OpenJDK Runtime Environment (IcedTea6 1.12.4) (6b27-1.12.4-1ubuntu1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
There are 3 roles introduction as below:
1. A https client: It can not direct connect to https server. Because it is restricted in a enclosed network environment just like intranet(ip is 10.100.11.8).The only way out is proxy server.
2. A proxy server: Locate between https client and https server. It have two network interfaces(ip are 10.100.11.10 and 192.168.11.10)
3. A https server: It is on extranet(ip is 192.168.11.123) and it also cannot connect to https client directly.
The other network environment setup is: There is no DNS server on https client network environment.
The following is part of https client code section:
public static void main(String args[]){
String proxyIp ="10.100.11.10";// proxy server IP
testConn(proxyIp);
private static void testConn(String proxyIp){
String httpsURL="https://192.168.11.123:8443/httpsServices";
setSSLContext();// I thought this is not root cause so I do not post on
try{
InetAddress intIPAdd= InetAddress.getByAddress(convStrToByte(proxyIp));
InetSocketAddress proxyInetAddr = new InetSocketAddress(intIPAdd,80);
Proxy proxy = new Proxy(Proxy.Type.HTTP, proxyInetAddr);
URL httpsUrl = new URL(httpsURL);
HttpsURLConnection httpsCon = (HttpsURLConnection) httpsUrl.openConnection(proxy);
httpsCon.setDoOutput(true);
httpsCon.setDoInput(true);
httpsCon.setRequestMethod("POST");
httpsCon.setDefaultUseCaches(true);
httpsCon.setUseCaches(true);
System.out.println("Get OutPutStream start!");
OutputStream out = httpsCon.getOutputStream(); // or httpsCon.connect();
System.out.println("Get OutPutStream done!");
OutputStreamWriter owriter = new OutputStreamWriter(out);
owriter.write("<request>test</request>");
owriter.flush();
owriter.close();
private static byte[] convStrToByte(String ip){
String str[] = ip.split("\\.");
byte[] ipAry = new byte[str.length];
for(int i=0;i<str.length;i++){
ipAry[i] = (byte) Integer.parseInt(str, 10);
return ipAry;
All right, my problem is, while print out "Get OutPutStream start" untill "Get OutPutStream done", it always takes about 5 secs.
No Error or exception. It was just hanging there approx 5 secs.
I observed the packets flow with wireshark.
Found out that hang time is to send a multicast to ask MDNS the proxy IP. No one reply this message. It would ask 3 times and then send request to proxy.
About https trust and authentication issue. I use *All Trust* solution. because https server use self-signed CA by myself.
If need, I would update this post with code section of setSSLContext() part.
I wondering to know that I create proxy object using *InetSocketAddress(InetAddress addr, int port)*, or I create proxy ip instance using *public static InetAddress getByAddress(byte[] addr)* why it would ask to MDNS for proxy ip?
On normal concept, I give an ip address and it do not need to resolve this ip for domain name.
Check InetAddress getByAddress(byte[] addr) of JAVA SE6 API:
It says: 'This method doesn't block, i.e. no reverse name service lookup is performed.'
What can I do to let https client don't need to ask MDNS?
Thank you guys so much.
Edited by: 1002346 on 2013/4/29 上午 12:05Java does reverse DNS lookups for security reasons. Not sure you can disable it but if you can it will be described on the Networking Properties page.
-
How to make screens cycle through like a slide show.
I need to have about ten screens (with hypertrends and whatnot) cycle through like a slide show.
I figured i'd use a pulse timer...aaaaand some if then statements...Hmmm......Help me out!!!
Old Fart once said "You can't polish a turd."
Thnx dad...I got it...
Made a FlipFlop with a F1 key input
Made a PulseTimer with the FlipFlop for on/off, Time period of 0, and duration of 0:10
Made a counter with the PulseTimer as count and for reset i did counter=11 (for ten screens)
Made expresions that read counter=1 ~ counter=10 for each screen
Conected each screens Maximize to an expression. -
How to make and iterate through a HashMap with an ArrayList in it
public class MailServer
// Storage for the arbitrary number of mail items to be stored
// on the server.
private ArrayList <MailItem> items;
private HashMap <String, ArrayList<MailItem>> mapper;
* Construct a mail server.
public MailServer()
items = new ArrayList<MailItem>();
mapper = new HashMap<String, ArrayList<MailItem>>();
a MailItem is a class that has objects to: from: message: subject
if I add
mapper.put("bob", mailItem1);
mapper.put("jo", mailItem2);
mapper.put("bob", mailItem3);
how can I go through the hashmap and display all the messages that there are for each person? (mailItem has a print() method that prints out the email info.
thanks all, i'm a newbieIf your map's values are lists, you have to append to that list, and create it the first time, too.
Demo:
import java.util.*;
public class MapExample2 {
private Map < String, List < Integer > > map = new HashMap < String, List < Integer > > ();
public void append(String key, Integer valueElement) {
List < Integer > list = map.get(key);
if (list == null)
map.put(key, list = new ArrayList < Integer > ());
list.add(valueElement);
public String toString() {
return map.toString();
public static void main(String[] args) {
MapExample2 app = new MapExample2();
app.append("even", 10);
app.append("even", 20);
app.append("odd", 17);
app.append("even", 30);
app.append("odd", 11);
app.append("odd", 43);
System.out.println(app);
} -
I need to sync my laptop and iphone with my bosses laptop and iphone. We need to be able to have access to the same files.
Any suggestions?Yes you can both use the same iCloud account.
-
How to make use of a proxy for a java program
Hi all..
Instead of entering in command prompt
java -Dhttp proxyHost="255.255.255.255" -Dhttp.proxyPort ="XXXX" classname
how can we set the details in the program itself...
Any suggetions will be greatfull...Dhaval.Yoganandi wrote:
why do you think this is valueless ?Because they don't mean anything, can easily be gotten without writing good answers (cheating) and are usually rewarded by those who had the question and thus aren't in the best position to judge if an answer is a good one. -
How To make jar file through Command Promt and run it through Command Promp
Now i am using Netbeans to create jar file but i want to create jar file for my project through command line and also want to run through command line
Note: This thread was originally posted in the [JDK's Monitoring & Troubleshooting Tools|http://forums.sun.com/forum.jspa?forumID=538] forum, but moved to this forum for closer topic alignment.
-
How do I make phone calls through my computer?
I have a Lenovo U530 and it is equipped with bluetooth. My phone is an iPhone 5S and I was wondering how to make phone calls through my laptop. Please help!
You can make free Local and STD call from any mobile or land phone. For this you need internet connection, PC and mobile/land phone. From
Dingaling you can make free call. Create an account, login to Dingaling and put you and your destination number. Both number will call and connect for free. To know more details visit
Worldwide free local and STD call.
To know more about interesting tips, visit
001 easy tricks. -
URLConnection in application through proxy
I have my main server on static IP & want to send object to server(to Servlet). I am connecting to Internet through proxy so it is not possible to open connection to that IP directly. I know it is possible to send request through proxy, but if I am using URLConnection through applications how do I get it through proxy ?
Hello,
I think your should connect to the proxy and send CONNECT server:port HTTP/1.0\n \r\n command. After this it should be possible to communicate with the server. -
How to make a Java Applet work beyond proxy?
Hi All,
I have problems with my applet working through proxy.I am using a client applet which makes a socket connection to a Java application running on the same pc as the web server.
Everything works fine when I am directly connected.However it does't work when connected through a proxy? I am using object o/p & i/p streams for the exchange of data b/w client applet & the server java application.How do I overcome this problem.
Currently I am using WinGate 3.0.2 as my proxy(I did't see any firewaal setting there) but I intend to make applet work through any proxy for that matter.Using a higher level protocol such as UDP would help in this regard?
This is urgent.PLease reply ASAP...
best rgds,
prithviTry to use http, i don't thing direct open the socket can pass throught the socket if your proxy haven't forward those ports~
Hi All,
I have problems with my applet working through
gh proxy.I am using a client applet which makes a
socket connection to a Java application running on the
same pc as the web server.
Everything works fine when I am directly
ly connected.However it does't work when connected
through a proxy? I am using object o/p & i/p streams
for the exchange of data b/w client applet & the
server java application.How do I overcome this
problem.
Currently I am using WinGate 3.0.2 as my proxy(I
(I did't see any firewaal setting there) but I intend
to make applet work through any proxy for that
matter.Using a higher level protocol such as UDP would
help in this regard?i think UDP/TCP is not the matter for that!
This is urgent.PLease reply ASAP...
best rgds,
prithvi -
MAK activation through Proxy activate
dear all
good day
I'am using VAMT to activate all computers in my domain by using MAK activation, when I activate a windows 8.1 through "proxy activate" I found that the remaining activation count was decreased by 2 not by 1 when I apply the
confirmation ID.
while when iam using the same activation method to activate office pro 2010 it's work normally and decrease the activation count only by 1.
could any one help me and explain why is this happened and how to fix this problem.
thank youHi,
Did this happen for all computer with windows 8.1?
If you are activating a MAK key, you can retrieve the remaining number of activations for that key by selecting the MAK in the product key list in the center pane and then clicking
Refresh product key data online in the right-side pane. This retrieves the number of remaining activations for the MAK from Microsoft. Note that this step requires Internet access and that the remaining activation count can only be retrieved
for MAKs.
Regards.
Vivian Wang
Maybe you are looking for
-
File Content Conversion in PI 7.1
Hi I am working on File (Input file is text file) to Proxy scenario where sender sends the file, Please find the sample data, 1st record is header and last one is trailer, and 2nd and 3rd record formats are different, File will have 2nd and 3rd forma
-
Migrate Starter Album to Element 12
I have Adobe Photoshop Element 12 installed on my new computer (Windows 8) but how do I import the album structure organizing my 4,000 photos in Adobe Photoshop Album Starter Edition 3.0 from my old computer (Windows XP)?
-
Need Help on JSP Radio Buttons please
How do i create radio buttons on a HTML file to link to other JSPs?? do i have statements in my HTML that gets a JSP i.e option and then that runs the links to the other pages? please help very stuck and confused. Thanks
-
Device Type unsuitable for ADS Documents
Hi , Whenever we are using transaction PC00_M40_F16 for taking the print of the form16. We are unable to get the print preview/print out . The following error we are getting :- Device Type unsuitable for ADS Documents Kindly suggest the resolution AS
-
MacBook Pro 17" Crashing - ATI Monitor suspected to blame.
Hi! Over the past few months, my MacBook Pro 17" has been crashing. Usually, it's when I'm playing a game such as World of Warcraft: the screen freezes, but I can still move my mouse and often music still continues to pay (however, sometimes music re