Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16393 > unrolled thread
| Started by | Greg <shireyg@gmail.com> |
|---|---|
| First post | 2012-07-26 10:00 -0700 |
| Last post | 2012-08-16 21:26 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP Greg <shireyg@gmail.com> - 2012-07-26 10:00 -0700
Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2012-07-29 08:36 -0700
Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP Steven Simpson <ss@domain.invalid> - 2012-07-30 13:26 +0100
Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP Greg <shireyg@gmail.com> - 2012-08-09 13:40 -0700
Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP Steven Simpson <ss@domain.invalid> - 2012-08-16 21:26 +0100
| From | Greg <shireyg@gmail.com> |
|---|---|
| Date | 2012-07-26 10:00 -0700 |
| Subject | IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP |
| Message-ID | <0ac597b5-4afa-4839-88cf-47c91d6f9b8b@googlegroups.com> |
I am trying to create a socket with the proxy type of HTTP. Every time the socket is created an IllegalArgumentException is thrown. I have learned from googling that the HTTP proxy is unsupported in sockets. What is the work around? Does anyone know? Any help would be much appreciated as there doesn't seem to be an answer readily available that I can find. Greg
[toc] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2012-07-29 08:36 -0700 |
| Message-ID | <jv3la5$f52$1@dont-email.me> |
| In reply to | #16393 |
On 7/26/2012 10:00 AM, Greg wrote: > I am trying to create a socket with the proxy type of HTTP. Every > time the socket is created an IllegalArgumentException is thrown. I > have learned from googling that the HTTP proxy is unsupported in > sockets. What is the work around? Does anyone know? Any help would > be much appreciated as there doesn't seem to be an answer readily > available that I can find. > > Greg > You can set up proxies in the Java Control Panel.
[toc] | [prev] | [next] | [standalone]
| From | Steven Simpson <ss@domain.invalid> |
|---|---|
| Date | 2012-07-30 13:26 +0100 |
| Message-ID | <05bie9-jl9.ln1@s.simpson148.btinternet.com> |
| In reply to | #16393 |
On 26/07/12 18:00, Greg wrote: > I am trying to create a socket with the proxy type of HTTP. Every time the socket is created an IllegalArgumentException is thrown. I have learned from googling that the HTTP proxy is unsupported in sockets. What is the work around? How much does the code using the Socket depend on its 'interface'? Perhaps it would be happy with (say) just getInputStream() and getOutputStream() on an already connected Socket. If so, then perhaps you can connect to the proxy explicitly, send "CONNECT" yourself, and parse the response header. If all goes okay, hand the socket as is over to the 'using' code, and it won't know the difference. -- ss at comp dot lancs dot ac dot uk
[toc] | [prev] | [next] | [standalone]
| From | Greg <shireyg@gmail.com> |
|---|---|
| Date | 2012-08-09 13:40 -0700 |
| Message-ID | <ca9191a3-fce5-4f22-ae36-b2c42e47ef95@googlegroups.com> |
| In reply to | #16393 |
On Thursday, July 26, 2012 10:00:23 AM UTC-7, Greg wrote: > I am trying to create a socket with the proxy type of HTTP. Every time the socket is created an IllegalArgumentException is thrown. I have learned from googling that the HTTP proxy is unsupported in sockets. What is the work around? Does anyone know? Any help would be much appreciated as there doesn't seem to be an answer readily available that I can find. > > > > Greg The code pretty extensively relies on the sockets interface.
[toc] | [prev] | [next] | [standalone]
| From | Steven Simpson <ss@domain.invalid> |
|---|---|
| Date | 2012-08-16 21:26 +0100 |
| Message-ID | <ak10g9-v34.ln1@s.simpson148.btinternet.com> |
| In reply to | #17567 |
On 09/08/12 21:40, Greg wrote: > On Thursday, July 26, 2012 10:00:23 AM UTC-7, Greg wrote: >> I am trying to create a socket with the proxy type of HTTP. Every time the socket is created an IllegalArgumentException is thrown. I have learned from googling that the HTTP proxy is unsupported in sockets. > The code pretty extensively relies on the sockets interface. Can you define 'pretty extensively', i.e. enumerate the methods which are used, and in what sequences? If this is sufficiently simple, and you can modify the code, some refactoring to use your own abstraction of the socket ought to be possible. -- ss at comp dot lancs dot ac dot uk
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web