Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #16609
| From | Steven Simpson <ss@domain.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type.HTTP |
| Date | 2012-07-30 13:26 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <05bie9-jl9.ln1@s.simpson148.btinternet.com> (permalink) |
| References | <0ac597b5-4afa-4839-88cf-47c91d6f9b8b@googlegroups.com> |
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
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web