Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17634 > unrolled thread

Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type.

Started by"Greg" <greg@1:261/38.remove-t9h-this>
First post2012-08-10 18:39 +0000
Last post2012-08-17 18:56 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type. "Greg" <greg@1:261/38.remove-t9h-this> - 2012-08-10 18:39 +0000
    Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type. "Steven Simpson" <steven.simpson@1:261/38.remove-4g4-this> - 2012-08-17 18:56 +0000

#17634 — Re: IllegalArgumentException with Socket API and Proxy with Proxy.Type.

From"Greg" <greg@1:261/38.remove-t9h-this>
Date2012-08-10 18:39 +0000
SubjectRe: IllegalArgumentException with Socket API and Proxy with Proxy.Type.
Message-ID<50254C51.56581.calajapr@time.synchro.net>
  To: Greg
From: Greg <shireyg@gmail.com>

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.

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#17968

From"Steven Simpson" <steven.simpson@1:261/38.remove-4g4-this>
Date2012-08-17 18:56 +0000
Message-ID<502E8842.56916.calajapr@time.synchro.net>
In reply to#17634
  To: Greg
From: Steven Simpson <ss@domain.invalid>

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

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web