simpleweb-support Mailing List for Simple (Page 7)
Brought to you by:
niallg
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
(14) |
May
(22) |
Jun
(15) |
Jul
(9) |
Aug
(2) |
Sep
(7) |
Oct
(4) |
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(7) |
Feb
(16) |
Mar
(17) |
Apr
|
May
(12) |
Jun
(4) |
Jul
(22) |
Aug
(50) |
Sep
(8) |
Oct
(23) |
Nov
(9) |
Dec
(50) |
2006 |
Jan
(6) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
(13) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(7) |
2007 |
Jan
(11) |
Feb
(3) |
Mar
(17) |
Apr
(21) |
May
(9) |
Jun
(4) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(14) |
Dec
(3) |
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
(15) |
Oct
(9) |
Nov
(6) |
Dec
(2) |
2009 |
Jan
(29) |
Feb
(2) |
Mar
(8) |
Apr
(14) |
May
(4) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(7) |
2010 |
Jan
|
Feb
(2) |
Mar
(61) |
Apr
(9) |
May
(10) |
Jun
(9) |
Jul
(10) |
Aug
(7) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(9) |
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(5) |
2013 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(12) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2014 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
(20) |
Jul
(12) |
Aug
(4) |
Sep
(3) |
Oct
(5) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Brad M. <br...@br...> - 2011-01-12 20:56:35
|
Hi Guys, Attached is some code from the Berry project which might help. And some snippets from the attached source file. Note the SecureProcessor class which is an implementation of Server. I got most of this code from somewhere, can't remember where. ---------------- protected SocketConnection initHttps( int port ) { SSLServerSocketFactory fac = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); log.info( "initHttps: port: " + port + " sslProtocol: " + sslProtocol + " keystoreAlgorithm:" + keystoreAlgorithm ); try { KeyStore keystore = KeyStore.getInstance( keystoreType ); keystore.load( new FileInputStream( keystoreFile ), keystorePassword.toCharArray() ); log.info( "listing aliases defined in keystore" ); Enumeration<String> aliases = keystore.aliases(); while( aliases.hasMoreElements() ) { String a = aliases.nextElement(); log.info( " - alias: " + a ); Certificate cert = keystore.getCertificate( a ); log.info(" - cert type: " + cert.getType()); log.info(" - algorithm: " + cert.getPublicKey().getAlgorithm() ); log.info(" - format: " + cert.getPublicKey().getFormat() ); } KeyManagerFactory kmf = KeyManagerFactory.getInstance( keystoreAlgorithm ); kmf.init( keystore, keystorePassword.toCharArray() ); X509TrustManager trustManager = new AnonymousTrustManager(); X509TrustManager[] trustManagers = new X509TrustManager[]{trustManager}; SSLContext sslc = SSLContext.getInstance( sslProtocol ); // An SSLContext is an environment for implementing JSSE. It is used to create a ServerSocketFactory sslc.init( kmf.getKeyManagers(), trustManagers, null ); ContainerServer processor = new ContainerServer(this, 25); org.simpleframework.transport.Server secure = new SecureProcessor(processor, sslc); SocketConnection ssl = new SocketConnection(secure); InetSocketAddress address = new InetSocketAddress( port ); ssl.connect( address, sslc ); ------------------------------------------------------ private static class SecureProcessor implements org.simpleframework.transport.Server { private ContainerServer processor; private SSLContext context; public SecureProcessor( ContainerServer processor, SSLContext context ) { this.processor = processor; this.context = context; } public void process( Socket pipeline ) throws IOException { final SocketChannel channel = pipeline.getChannel(); final Map map = new HashMap(); Socket secure = new Socket() { private SSLEngine engine; public Map getAttributes() { return map; } public SocketChannel getChannel() { return channel; } public SSLEngine getEngine() { if( engine == null ) { engine = context.createSSLEngine(); } return engine; } }; processor.process( secure ); } public void stop() { } } } On 13/01/11 01:50, Fábio Matos wrote: > This also interest me, but it seems that Simple does not gives you > access to the SSLEngine. > > Example: > ... > Connection connection = new SocketConnection(container); > connection.connect(address, sslContext); > ... > > Following the trail of the sslContext we get: > org.simpleframework.transport.connect.* > > SocketConnection -> ListenerManager -> Listener -> Acceptor > > where we have: > > private void process(SocketChannel channel) throws IOException { > SSLEngine engine = context.createSSLEngine(); > > try { > process(channel, engine); > } catch(Exception e) { > channel.close(); > } > } > > this will then follow on and set the engine in the Socket used. > > So, I don't see any easy way to get access to the SSLEngine created to > call the setEnabledCipherSuites method. > > > > 2011/1/12 Bruno Harbulot<br...@di...> >> Hi, >> >> I think the problem is that configuring the cipher suites is done via >> the SSLEngine, not via the SSLContext: >> http://download.oracle.com/javase/6/docs/api/javax/net/ssl/SSLEngine.html#setEnabledCipherSuites%28java.lang.String[]%29 >> >> One would need to be able to get hold of the SSLEngine instance to >> configure this. >> >> Best wishes, >> >> Bruno. >> >> >> On 12/01/2011 08:29, Niall Gallagher wrote: >>> Hi, >>> >>> You should be in complete control of SSL. All you need to do is create >>> an SSLContext and pass it to the connection. It will create an SSLEngine >>> per connection. >>> >>> There is nothing you need to do in Simple. >>> >>> Niall >>> >>> --- On *Mon, 10/1/11, Andrew Barlow /<and...@sd...>/* wrote: >>> >>> >>> From: Andrew Barlow<and...@sd...> >>> Subject: [Simpleweb-Support] Removing weaker ciphers from SSL support >>> To: "Simple support and user issues" >>> <sim...@li...> >>> Received: Monday, 10 January, 2011, 8:07 AM >>> >>> We have just received the results of a security audit on a system >>> that we developed which uses Simple 4.1.21 to deliver content over SSL. >>> >>> The finding was: >>> >>> "Three weak SSL ciphers were noted as being supported by the web >>> server. These ciphers all used a symmetric key length of 56 bits or >>> less and are considered unsuitable for use by a financial services >>> application. >>> OpenSSL name: EXP-DES-CBC-SHA >>> Detailed information: Key Exchange: RSA(512); Authentication: RSA; >>> Encryption: DES(40); MAC: SHA1 >>> OpenSSL name: EXP-RC4-MD5 >>> Detailed information: Key Exchange: RSA(512); Authentication: RSA; >>> Encryption: RC4(40); MAC: MD5 >>> OpenSSL name: DES-CBC-SHA >>> Detailed information: Key Exchange: RSA; Authentication: " >>> >>> and the recommendation was that the server be configured to remove >>> these weak ciphers. >>> >>> Is this something we do in Simple, or do we make changes in the Java >>> keystore? >>> >>> Does anyone have any experience of this? >>> >>> Andy Barlow >>> >>> >>> / >>> / >>> / >>> / >>> >>> >>> >>> >>> -----Inline Attachment Follows----- >>> >>> ------------------------------------------------------------------------------ >>> Gaining the trust of online customers is vital for the success of >>> any company >>> that requires sensitive data to be transmitted over the Web. Learn >>> how to >>> best implement a security strategy that keeps consumers' information >>> secure >>> and instills the confidence they need to proceed with transactions. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> >>> -----Inline Attachment Follows----- >>> >>> _______________________________________________ >>> Simpleweb-Support mailing list >>> Sim...@li... >>> </mc/compose?to=Sim...@li...> >>> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Protect Your Site and Customers from Malware Attacks >>> Learn about various malware tactics and how to avoid them. Understand >>> malware threats, the impact they can have on your business, and how you >>> can protect your company and customers by using code signing. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> >>> >>> >>> _______________________________________________ >>> Simpleweb-Support mailing list >>> Sim...@li... >>> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Fábio M. <fab...@gm...> - 2011-01-12 12:53:33
|
This also interest me, but it seems that Simple does not gives you access to the SSLEngine. Example: ... Connection connection = new SocketConnection(container); connection.connect(address, sslContext); ... Following the trail of the sslContext we get: org.simpleframework.transport.connect.* SocketConnection -> ListenerManager -> Listener -> Acceptor where we have: private void process(SocketChannel channel) throws IOException { SSLEngine engine = context.createSSLEngine(); try { process(channel, engine); } catch(Exception e) { channel.close(); } } this will then follow on and set the engine in the Socket used. So, I don't see any easy way to get access to the SSLEngine created to call the setEnabledCipherSuites method. 2011/1/12 Bruno Harbulot <br...@di...> > > Hi, > > I think the problem is that configuring the cipher suites is done via > the SSLEngine, not via the SSLContext: > http://download.oracle.com/javase/6/docs/api/javax/net/ssl/SSLEngine.html#setEnabledCipherSuites%28java.lang.String[]%29 > > One would need to be able to get hold of the SSLEngine instance to > configure this. > > Best wishes, > > Bruno. > > > On 12/01/2011 08:29, Niall Gallagher wrote: > > Hi, > > > > You should be in complete control of SSL. All you need to do is create > > an SSLContext and pass it to the connection. It will create an SSLEngine > > per connection. > > > > There is nothing you need to do in Simple. > > > > Niall > > > > --- On *Mon, 10/1/11, Andrew Barlow /<and...@sd...>/* wrote: > > > > > > From: Andrew Barlow <and...@sd...> > > Subject: [Simpleweb-Support] Removing weaker ciphers from SSL support > > To: "Simple support and user issues" > > <sim...@li...> > > Received: Monday, 10 January, 2011, 8:07 AM > > > > We have just received the results of a security audit on a system > > that we developed which uses Simple 4.1.21 to deliver content over SSL. > > > > The finding was: > > > > "Three weak SSL ciphers were noted as being supported by the web > > server. These ciphers all used a symmetric key length of 56 bits or > > less and are considered unsuitable for use by a financial services > > application. > > OpenSSL name: EXP-DES-CBC-SHA > > Detailed information: Key Exchange: RSA(512); Authentication: RSA; > > Encryption: DES(40); MAC: SHA1 > > OpenSSL name: EXP-RC4-MD5 > > Detailed information: Key Exchange: RSA(512); Authentication: RSA; > > Encryption: RC4(40); MAC: MD5 > > OpenSSL name: DES-CBC-SHA > > Detailed information: Key Exchange: RSA; Authentication: " > > > > and the recommendation was that the server be configured to remove > > these weak ciphers. > > > > Is this something we do in Simple, or do we make changes in the Java > > keystore? > > > > Does anyone have any experience of this? > > > > Andy Barlow > > > > > > / > > / > > / > > / > > > > > > > > > > -----Inline Attachment Follows----- > > > > ------------------------------------------------------------------------------ > > Gaining the trust of online customers is vital for the success of > > any company > > that requires sensitive data to be transmitted over the Web. Learn > > how to > > best implement a security strategy that keeps consumers' information > > secure > > and instills the confidence they need to proceed with transactions. > > http://p.sf.net/sfu/oracle-sfdevnl > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > </mc/compose?to=Sim...@li...> > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > > > > > > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Bruno H. <br...@di...> - 2011-01-12 12:09:11
|
Hi, I think the problem is that configuring the cipher suites is done via the SSLEngine, not via the SSLContext: http://download.oracle.com/javase/6/docs/api/javax/net/ssl/SSLEngine.html#setEnabledCipherSuites%28java.lang.String[]%29 One would need to be able to get hold of the SSLEngine instance to configure this. Best wishes, Bruno. On 12/01/2011 08:29, Niall Gallagher wrote: > Hi, > > You should be in complete control of SSL. All you need to do is create > an SSLContext and pass it to the connection. It will create an SSLEngine > per connection. > > There is nothing you need to do in Simple. > > Niall > > --- On *Mon, 10/1/11, Andrew Barlow /<and...@sd...>/* wrote: > > > From: Andrew Barlow <and...@sd...> > Subject: [Simpleweb-Support] Removing weaker ciphers from SSL support > To: "Simple support and user issues" > <sim...@li...> > Received: Monday, 10 January, 2011, 8:07 AM > > We have just received the results of a security audit on a system > that we developed which uses Simple 4.1.21 to deliver content over SSL. > > The finding was: > > "Three weak SSL ciphers were noted as being supported by the web > server. These ciphers all used a symmetric key length of 56 bits or > less and are considered unsuitable for use by a financial services > application. > OpenSSL name: EXP-DES-CBC-SHA > Detailed information: Key Exchange: RSA(512); Authentication: RSA; > Encryption: DES(40); MAC: SHA1 > OpenSSL name: EXP-RC4-MD5 > Detailed information: Key Exchange: RSA(512); Authentication: RSA; > Encryption: RC4(40); MAC: MD5 > OpenSSL name: DES-CBC-SHA > Detailed information: Key Exchange: RSA; Authentication: " > > and the recommendation was that the server be configured to remove > these weak ciphers. > > Is this something we do in Simple, or do we make changes in the Java > keystore? > > Does anyone have any experience of this? > > Andy Barlow > > > / > / > / > / > > > > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of > any company > that requires sensitive data to be transmitted over the Web. Learn > how to > best implement a security strategy that keeps consumers' information > secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > </mc/compose?to=Sim...@li...> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > > > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2011-01-12 08:29:46
|
Hi, You should be in complete control of SSL. All you need to do is create an SSLContext and pass it to the connection. It will create an SSLEngine per connection. There is nothing you need to do in Simple. Niall --- On Mon, 10/1/11, Andrew Barlow <and...@sd...> wrote: From: Andrew Barlow <and...@sd...> Subject: [Simpleweb-Support] Removing weaker ciphers from SSL support To: "Simple support and user issues" <sim...@li...> Received: Monday, 10 January, 2011, 8:07 AM We have just received the results of a security audit on a system that we developed which uses Simple 4.1.21 to deliver content over SSL. The finding was: "Three weak SSL ciphers were noted as being supported by the web server. These ciphers all used a symmetric key length of 56 bits or less and are considered unsuitable for use by a financial services application. OpenSSL name: EXP-DES-CBC-SHA Detailed information: Key Exchange: RSA(512); Authentication: RSA; Encryption: DES(40); MAC: SHA1 OpenSSL name: EXP-RC4-MD5 Detailed information: Key Exchange: RSA(512); Authentication: RSA; Encryption: RC4(40); MAC: MD5 OpenSSL name: DES-CBC-SHA Detailed information: Key Exchange: RSA; Authentication: " and the recommendation was that the server be configured to remove these weak ciphers. Is this something we do in Simple, or do we make changes in the Java keystore? Does anyone have any experience of this? Andy Barlow -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl -----Inline Attachment Follows----- _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Kai S. <sch...@gm...> - 2011-01-11 07:20:59
|
Hey Andy, I'm not very experienced with Java's cryptography, all I know is that is a den of wizards that hide a maze. As far as I understand, the audit complains that you are too permitant in how you allows clients their access. Depending on what sort of business you're in, you should either freak out or feel comforted. In the public domain, many people use "not so good" cryptography. MD5 hashes is a great example. It's hackable. Is there better? yes. is it really worth the trouble to upgrade? Well, in time, yes. Is the upgrade immune to hacks? Yes, for the time being... ... ... In the private / military domain, any infringement or security risk is worth mentionning. Anyway... in your app, run a full printout on the System class. uhm... use retrospection if you have to. It'll print out tons and tons of data. You'll find loads of stuff that would worry you if you were military hehe. but really, it's in your OpenSSL Library... have a look at www.openssl.orgfor further info :) -k (being my useless self) On Mon, Jan 10, 2011 at 5:07 PM, Andrew Barlow <and...@sd... > wrote: > We have just received the results of a security audit on a system that we > developed which uses Simple 4.1.21 to deliver content over SSL. > > The finding was: > > "Three weak SSL ciphers were noted as being supported by the web server. > These ciphers all used a symmetric key length of 56 bits or less and are > considered unsuitable for use by a financial services application. > OpenSSL name: EXP-DES-CBC-SHA > Detailed information: Key Exchange: RSA(512); Authentication: RSA; > Encryption: DES(40); MAC: SHA1 > OpenSSL name: EXP-RC4-MD5 > Detailed information: Key Exchange: RSA(512); Authentication: RSA; > Encryption: RC4(40); MAC: MD5 > OpenSSL name: DES-CBC-SHA > Detailed information: Key Exchange: RSA; Authentication: " > > and the recommendation was that the server be configured to remove these > weak ciphers. > > Is this something we do in Simple, or do we make changes in the Java > keystore? > > Does anyone have any experience of this? > > Andy Barlow > > > * > > * > > > > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > |
From: Andrew B. <and...@sd...> - 2011-01-10 16:32:53
|
We have just received the results of a security audit on a system that we developed which uses Simple 4.1.21 to deliver content over SSL. The finding was: "Three weak SSL ciphers were noted as being supported by the web server. These ciphers all used a symmetric key length of 56 bits or less and are considered unsuitable for use by a financial services application. OpenSSL name: EXP-DES-CBC-SHA Detailed information: Key Exchange: RSA(512); Authentication: RSA; Encryption: DES(40); MAC: SHA1 OpenSSL name: EXP-RC4-MD5 Detailed information: Key Exchange: RSA(512); Authentication: RSA; Encryption: RC4(40); MAC: MD5 OpenSSL name: DES-CBC-SHA Detailed information: Key Exchange: RSA; Authentication: " and the recommendation was that the server be configured to remove these weak ciphers. Is this something we do in Simple, or do we make changes in the Java keystore? Does anyone have any experience of this? Andy Barlow |
From: John <sc1...@gm...> - 2011-01-10 06:53:13
|
2011/1/9 Fábio Matos <fab...@gm...> > Try the attached file: SimpleSSLHelloWorld.java Thanks, works perfectly! |
From: Fábio M. <fab...@gm...> - 2011-01-10 01:28:08
|
Try the attached file: SimpleSSLHelloWorld.java Regards. 2011/1/9 John <sc1...@gm...> > > I've been playing around with the code posted here previously (which didn't compile on my machine, JDK 1.6, Simple 2.4.1, with missing classes, e.g., DebugLevel, Indexer, etc). > I've posted it here (it's a kludge of the HelloWorld tutorial and the SSL code, and it's strictly amateur hour): > http://www.scribd.com/HTTPSServer2/d/46557107 > It compiles fine and runs without complaint, but when I try to actually *access* the HTTPS webserver I'm not able to connect (tried with Safari and Lynx): > $ java -classpath .:simple-4.1.21.jar HTTPSServer2 & > bound to: localhost:9090 > $ time lynx -dump https://localhost:9090 > Looking up localhost:9090 > Making HTTPS connection to localhost:9090 > Retrying connection without TLS. > Looking up localhost:9090 > Making HTTPS connection to localhost:9090 > Alert!: Unable to make secure connection to remote host. > lynx: Can't access startfile https://localhost:9090/ > real 4m0.040s > user 0m0.007s > sys 0m0.011s > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: John <sc1...@gm...> - 2011-01-09 18:31:58
|
I've been playing around with the code posted here previously (which didn't compile on my machine, JDK 1.6, Simple 2.4.1, with missing classes, e.g., DebugLevel, Indexer, etc). I've posted it here (it's a kludge of the HelloWorld tutorial and the SSL code, and it's strictly amateur hour): http://www.scribd.com/HTTPSServer2/d/46557107 It compiles fine and runs without complaint, but when I try to actually *access* the HTTPS webserver I'm not able to connect (tried with Safari and Lynx): $ java -classpath .:simple-4.1.21.jar HTTPSServer2 & bound to: localhost:9090 $ time lynx -dump https://localhost:9090 Looking up localhost:9090 Making HTTPS connection to localhost:9090 Retrying connection without TLS. Looking up localhost:9090 Making HTTPS connection to localhost:9090 Alert!: Unable to make secure connection to remote host. lynx: Can't access startfile https://localhost:9090/ real 4m0.040s user 0m0.007s sys 0m0.011s |
From: <lma...@sm...> - 2010-12-11 21:32:04
|
Hi, My actual need is to support HTTP over bluetooth. I'm gonna try to implement a new Transport. Thank you for your help ! Laurent. On Fri, Dec 10, 2010 at 6:07 PM, Niall Gallagher <gal...@ya...>wrote: > Hi, > > I have never heard of an implementation of HTTP over UDP? If you do not > have access to TCP then its possible. However, you would simply be > implementing transmission control over UDP, which is pretty much going to be > similar to TCP. I think you would be best implementing a new Transport, > although you could probably try to adapt the SocketChannel to implement your > protocol. I am sure you could find examples of such attempts from googling > it? > > Regards, > Niall > > --- On Fri, 10/12/10, Laurent Marchal <lma...@sm...> wrote: > > > From: Laurent Marchal <lma...@sm...> > > Subject: [Simpleweb-Support] Support for http over UDP, bluetooth... > > To: sim...@li... > > Received: Friday, 10 December, 2010, 11:51 AM > > Hi, > > > > First thanks for creating this > > project, this is really cool, clean > > and powerful. > > I just have a question : is it possible tu use something > > else than > > TCP/IP to communicate ? Like a BluetoothSocket / > > BluetoothServerSocket ? > > > > The server behavior a little bit different from what I have > > seen > > usually. You can create a server with few lines of code : > > > > Connection connection = new > > SocketConnection(new Controller()); > > SocketAddress address = new > > InetSocketAddress(port); > > connection.connect(address); > > > > What would be the best way to support another protocol ? > > implement a new > > SocketAddress, a new Server or Transport ? > > > > Thanks for your help. > > > > Laurent. > > > > > > > > > ------------------------------------------------------------------------------ > > Oracle to DB2 Conversion Guide: Learn learn about native > > support for PL/SQL, > > new data types, scalar functions, improved concurrency, > > built-in packages, > > OCI, SQL*Plus, data movement tools, best practices and > > more. > > http://p.sf.net/sfu/oracle-sfdev2dev > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Niall G. <gal...@ya...> - 2010-12-11 00:07:15
|
Hi, I have never heard of an implementation of HTTP over UDP? If you do not have access to TCP then its possible. However, you would simply be implementing transmission control over UDP, which is pretty much going to be similar to TCP. I think you would be best implementing a new Transport, although you could probably try to adapt the SocketChannel to implement your protocol. I am sure you could find examples of such attempts from googling it? Regards, Niall --- On Fri, 10/12/10, Laurent Marchal <lma...@sm...> wrote: > From: Laurent Marchal <lma...@sm...> > Subject: [Simpleweb-Support] Support for http over UDP, bluetooth... > To: sim...@li... > Received: Friday, 10 December, 2010, 11:51 AM > Hi, > > First thanks for creating this > project, this is really cool, clean > and powerful. > I just have a question : is it possible tu use something > else than > TCP/IP to communicate ? Like a BluetoothSocket / > BluetoothServerSocket ? > > The server behavior a little bit different from what I have > seen > usually. You can create a server with few lines of code : > > Connection connection = new > SocketConnection(new Controller()); > SocketAddress address = new > InetSocketAddress(port); > connection.connect(address); > > What would be the best way to support another protocol ? > implement a new > SocketAddress, a new Server or Transport ? > > Thanks for your help. > > Laurent. > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native > support for PL/SQL, > new data types, scalar functions, improved concurrency, > built-in packages, > OCI, SQL*Plus, data movement tools, best practices and > more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Laurent M. <lma...@sm...> - 2010-12-10 20:13:24
|
Hi, First thanks for creating this project, this is really cool, clean and powerful. I just have a question : is it possible tu use something else than TCP/IP to communicate ? Like a BluetoothSocket / BluetoothServerSocket ? The server behavior a little bit different from what I have seen usually. You can create a server with few lines of code : Connection connection = new SocketConnection(new Controller()); SocketAddress address = new InetSocketAddress(port); connection.connect(address); What would be the best way to support another protocol ? implement a new SocketAddress, a new Server or Transport ? Thanks for your help. Laurent. |
From: Niall G. <gal...@ya...> - 2010-11-25 11:13:52
|
Hi, In this scenario the clients are closing the sockets at their end. Ill take a look at the test, but I am pretty sure this is what is happening. Do a netstat to confirm. Niall --- On Wed, 24/11/10, Christophe Roudet <cr...@ac...> wrote: > From: Christophe Roudet <cr...@ac...> > Subject: [Simpleweb-Support] Serving large file to a lot of clients > To: sim...@li... > Received: Wednesday, 24 November, 2010, 7:49 AM > Hello, > > I am testing simpleweb to serve large file to a lot of > clients. > I have set up a test server that send arbitrary large data. > After a while I got exceptions: > > org.simpleframework.http.core.ProducerException: Error > sending response > at > org.simpleframework.http.core.FixedProducer.produce(FixedProducer.java:156) > at > org.simpleframework.http.core.Transfer.write(Transfer.java:184) > at > org.simpleframework.http.core.Transfer.write(Transfer.java:167) > at > org.simpleframework.http.core.Accumulator.write(Accumulator.java:219) > at > org.simpleframework.http.core.Accumulator.write(Accumulator.java:190) > at > org.simpleframework.FakeFileResource.run(FakeFileResource.java:66) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown > Source) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > Source) > at java.lang.Thread.run(Unknown > Source) > Caused by: java.nio.channels.ClosedChannelException > at > sun.nio.ch.SocketChannelImpl.ensureWriteOpen(Unknown > Source) > at > sun.nio.ch.SocketChannelImpl.write(Unknown Source) > at > org.simpleframework.transport.Appender.write(Appender.java:343) > at > org.simpleframework.transport.Appender.write(Appender.java:322) > at > org.simpleframework.transport.Appender.write(Appender.java:297) > at > org.simpleframework.transport.Segment.write(Segment.java:206) > > Is there something I do wrong? > > I have attached the source, ServerTest is the server main > class, and ClientTest the client main class. > I have tested it on windows xp with java version "1.6.0_22" > and simple-4.1.21.jar. > > Thanks > > -- Christophe Roudet > > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance > To Win $500! > Tap into the largest installed PC base & get more eyes > on your game by > optimizing for Intel(R) Graphics Technology. Get started > today with the > Intel(R) Software Partner Program. Five $500 cash prizes > are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Christophe R. <cr...@ac...> - 2010-11-24 15:49:33
|
Hello, I am testing simpleweb to serve large file to a lot of clients. I have set up a test server that send arbitrary large data. After a while I got exceptions: org.simpleframework.http.core.ProducerException: Error sending response at org.simpleframework.http.core.FixedProducer.produce(FixedProducer.java:156) at org.simpleframework.http.core.Transfer.write(Transfer.java:184) at org.simpleframework.http.core.Transfer.write(Transfer.java:167) at org.simpleframework.http.core.Accumulator.write(Accumulator.java:219) at org.simpleframework.http.core.Accumulator.write(Accumulator.java:190) at org.simpleframework.FakeFileResource.run(FakeFileResource.java:66) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.nio.channels.ClosedChannelException at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(Unknown Source) at sun.nio.ch.SocketChannelImpl.write(Unknown Source) at org.simpleframework.transport.Appender.write(Appender.java:343) at org.simpleframework.transport.Appender.write(Appender.java:322) at org.simpleframework.transport.Appender.write(Appender.java:297) at org.simpleframework.transport.Segment.write(Segment.java:206) Is there something I do wrong? I have attached the source, ServerTest is the server main class, and ClientTest the client main class. I have tested it on windows xp with java version "1.6.0_22" and simple-4.1.21.jar. Thanks -- Christophe Roudet |
From: Toby <tob...@gm...> - 2010-10-15 10:19:16
|
Great thanks. I was looking at AsyncWeb which talks about "asynchronous throughout" and was interested in the difference (having not really understood AsyncWebs description). The (Simple) asynchronous stuff were discussing is the thread per request model I guess and we can avoid running out using the queue (as in the example) so I was curious about an alternative that AsyncWeb tries to describe... ...bit random I know, but if you have any comments I'd be interested :) Cheers Toby On 15 Oct 2010, at 10:39, Niall Gallagher <gal...@ya...> wrote: > Hi, > > Thats pretty much the idea. For instance if your service needs to do something that requires some time to complete, for example waiting for a JMS message, then asynchronous behaviour here becomes a real advantage. As it allow many connections to be open servicing requests without then need for a separate thread for each. > > Similar to whats been proposed for Servlet 3.0 spec, but done in a much more straight forward manner. > > Niall > > --- On Thu, 14/10/10, Toby <tob...@gm...> wrote: > > From: Toby <tob...@gm...> > Subject: Re: [Simpleweb-Support] Tutorial example out of date? > To: "Simple support and user issues" <sim...@li...> > Received: Thursday, 14 October, 2010, 10:35 PM > > Thanks, > > Are the other dice kicking around? I was running some tests to try and better understand the difference between a regular container servicing requests and the example that delegates to a Executor. Is it the simple case blocking? Clients will wait for a request to complete and in the mean time, the server won't accept new connections? > > Thanks > > Toby > > > On 15 Oct 2010, at 00:32, Niall Gallagher <gal...@ya...> wrote: > >> Hi, >> >> Yes the tutorial is out of date, I really must update it. Thanks for the feedback. >> >> Regards, >> Niall >> >> --- On Thu, 14/10/10, Toby <tob...@gm...> wrote: >> >> From: Toby <tob...@gm...> >> Subject: [Simpleweb-Support] Tutorial example out of date? >> To: sim...@li... >> Received: Thursday, 14 October, 2010, 12:41 PM >> >> Hello, >> >> I was just looking through the tutorial on the main Simple site, am I correct in thinking the example for aysnc stuff (http://www.simpleframework.org/doc/tutorial/tutorial.php#async) is out of date? It doesn't want to compile, shouldn't it look like the example below instead? >> >> Thanks in advance, >> Toby >> >> >> package com.ubs.apman.transport; >> >> import org.simpleframework.http.Request; >> import org.simpleframework.http.Response; >> import org.simpleframework.http.core.Container; >> import org.simpleframework.transport.connect.Connection; >> import org.simpleframework.transport.connect.SocketConnection; >> import org.simpleframework.util.thread.Scheduler; >> >> import java.io.IOException; >> import java.io.PrintStream; >> import java.net.InetSocketAddress; >> import java.net.SocketAddress; >> >> public class FooTest { >> >> >> public static class AsynchronousService implements Container { >> private Scheduler queue; >> >> public class Task implements Runnable { >> >> private final Response response; >> private final Request request; >> >> public Task(Request request, Response response) { >> this.response = response; >> this.request = request; >> } >> >> public void run() { >> PrintStream body = null; >> try { >> body = response.getPrintStream(); >> long time = System.currentTimeMillis(); >> >> response.set("Content-Type", "text/plain"); >> response.set("Server", "HelloWorld/1.0 (Simple 4.0)"); >> response.setDate("Date", time); >> response.setDate("Last-Modified", time); >> >> body.println("Hello World"); >> } catch (IOException e) { >> throw new RuntimeException(e); >> } finally { >> if (body != null) body.close(); >> } >> } >> } >> >> public AsynchronousService(Scheduler queue) { >> this.queue = queue; >> } >> >> public void handle(Request request, Response response) { >> Task task = new Task(request, response); >> queue.execute(task); >> } >> >> } >> >> public static void main(String[] list) throws Exception { >> Scheduler scheduler = new Scheduler(5); >> Container container = new AsynchronousService(scheduler); >> Connection connection = new SocketConnection(container); >> SocketAddress address = new InetSocketAddress(8080); >> connection.connect(address); >> } >> >> } >> >> >> -----Inline Attachment Follows----- >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today. >> http://p.sf.net/sfu/beautyoftheweb >> >> -----Inline Attachment Follows----- >> >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> >> > >> ------------------------------------------------------------------------------ >> Download new Adobe(R) Flash(R) Builder(TM) 4 >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >> Flex(R) Builder(TM)) enable the development of rich applications that run >> across multiple browsers and platforms. Download your free trials today! >> http://p.sf.net/sfu/adobe-dev2dev > >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2010-10-15 09:40:09
|
Hi, Thats pretty much the idea. For instance if your service needs to do something that requires some time to complete, for example waiting for a JMS message, then asynchronous behaviour here becomes a real advantage. As it allow many connections to be open servicing requests without then need for a separate thread for each. Similar to whats been proposed for Servlet 3.0 spec, but done in a much more straight forward manner. Niall --- On Thu, 14/10/10, Toby <tob...@gm...> wrote: From: Toby <tob...@gm...> Subject: Re: [Simpleweb-Support] Tutorial example out of date? To: "Simple support and user issues" <sim...@li...> Received: Thursday, 14 October, 2010, 10:35 PM Thanks, Are the other dice kicking around? I was running some tests to try and better understand the difference between a regular container servicing requests and the example that delegates to a Executor. Is it the simple case blocking? Clients will wait for a request to complete and in the mean time, the server won't accept new connections? Thanks Toby On 15 Oct 2010, at 00:32, Niall Gallagher <gal...@ya...> wrote: Hi, Yes the tutorial is out of date, I really must update it. Thanks for the feedback. Regards, Niall --- On Thu, 14/10/10, Toby <tob...@gm...> wrote: From: Toby <tob...@gm...> Subject: [Simpleweb-Support] Tutorial example out of date? To: sim...@li... Received: Thursday, 14 October, 2010, 12:41 PM Hello, I was just looking through the tutorial on the main Simple site, am I correct in thinking the example for aysnc stuff (http://www.simpleframework.org/doc/tutorial/tutorial.php#async) is out of date? It doesn't want to compile, shouldn't it look like the example below instead? Thanks in advance, Toby package com.ubs.apman.transport; import org.simpleframework.http.Request; import org.simpleframework.http.Response; import org.simpleframework.http.core.Container; import org.simpleframework.transport.connect.Connection; import org.simpleframework.transport.connect.SocketConnection; import org.simpleframework.util.thread.Scheduler; import java.io.IOException; import java.io.PrintStream; import java.net.InetSocketAddress; import java.net.SocketAddress; public class FooTest { public static class AsynchronousService implements Container { private Scheduler queue; public class Task implements Runnable { private final Response response; private final Request request; public Task(Request request, Response response) { this.response = response; this.request = request; } public void run() { PrintStream body = null; try { body = response.getPrintStream(); long time = System.currentTimeMillis(); response.set("Content-Type", "text/plain"); response.set("Server", "HelloWorld/1.0 (Simple 4.0)"); response.setDate("Date", time); response.setDate("Last-Modified", time); body.println("Hello World"); } catch (IOException e) { throw new RuntimeException(e); } finally { if (body != null) body.close(); } } } public AsynchronousService(Scheduler queue) { this.queue = queue; } public void handle(Request request, Response response) { Task task = new Task(request, response); queue.execute(task); } } public static void main(String[] list) throws Exception { Scheduler scheduler = new Scheduler(5); Container container = new AsynchronousService(scheduler); Connection connection = new SocketConnection(container); SocketAddress address = new InetSocketAddress(8080); connection.connect(address); } } -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb -----Inline Attachment Follows----- _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev -----Inline Attachment Follows----- _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Toby <tob...@gm...> - 2010-10-15 05:35:18
|
Thanks, Are the other dice kicking around? I was running some tests to try and better understand the difference between a regular container servicing requests and the example that delegates to a Executor. Is it the simple case blocking? Clients will wait for a request to complete and in the mean time, the server won't accept new connections? Thanks Toby On 15 Oct 2010, at 00:32, Niall Gallagher <gal...@ya...> wrote: > Hi, > > Yes the tutorial is out of date, I really must update it. Thanks for the feedback. > > Regards, > Niall > > --- On Thu, 14/10/10, Toby <tob...@gm...> wrote: > > From: Toby <tob...@gm...> > Subject: [Simpleweb-Support] Tutorial example out of date? > To: sim...@li... > Received: Thursday, 14 October, 2010, 12:41 PM > > Hello, > > I was just looking through the tutorial on the main Simple site, am I correct in thinking the example for aysnc stuff (http://www.simpleframework.org/doc/tutorial/tutorial.php#async) is out of date? It doesn't want to compile, shouldn't it look like the example below instead? > > Thanks in advance, > Toby > > > package com.ubs.apman.transport; > > import org.simpleframework.http.Request; > import org.simpleframework.http.Response; > import org.simpleframework.http.core.Container; > import org.simpleframework.transport.connect.Connection; > import org.simpleframework.transport.connect.SocketConnection; > import org.simpleframework.util.thread.Scheduler; > > import java.io.IOException; > import java.io.PrintStream; > import java.net.InetSocketAddress; > import java.net.SocketAddress; > > public class FooTest { > > > public static class AsynchronousService implements Container { > private Scheduler queue; > > public class Task implements Runnable { > > private final Response response; > private final Request request; > > public Task(Request request, Response response) { > this.response = response; > this.request = request; > } > > public void run() { > PrintStream body = null; > try { > body = response.getPrintStream(); > long time = System.currentTimeMillis(); > > response.set("Content-Type", "text/plain"); > response.set("Server", "HelloWorld/1.0 (Simple 4.0)"); > response.setDate("Date", time); > response.setDate("Last-Modified", time); > > body.println("Hello World"); > } catch (IOException e) { > throw new RuntimeException(e); > } finally { > if (body != null) body.close(); > } > } > } > > public AsynchronousService(Scheduler queue) { > this.queue = queue; > } > > public void handle(Request request, Response response) { > Task task = new Task(request, response); > queue.execute(task); > } > > } > > public static void main(String[] list) throws Exception { > Scheduler scheduler = new Scheduler(5); > Container container = new AsynchronousService(scheduler); > Connection connection = new SocketConnection(container); > SocketAddress address = new InetSocketAddress(8080); > connection.connect(address); > } > > } > > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2010-10-14 23:32:24
|
Hi, Yes the tutorial is out of date, I really must update it. Thanks for the feedback. Regards, Niall --- On Thu, 14/10/10, Toby <tob...@gm...> wrote: From: Toby <tob...@gm...> Subject: [Simpleweb-Support] Tutorial example out of date? To: sim...@li... Received: Thursday, 14 October, 2010, 12:41 PM Hello, I was just looking through the tutorial on the main Simple site, am I correct in thinking the example for aysnc stuff (http://www.simpleframework.org/doc/tutorial/tutorial.php#async) is out of date? It doesn't want to compile, shouldn't it look like the example below instead? Thanks in advance, Toby package com.ubs.apman.transport; import org.simpleframework.http.Request; import org.simpleframework.http.Response; import org.simpleframework.http.core.Container; import org.simpleframework.transport.connect.Connection; import org.simpleframework.transport.connect.SocketConnection; import org.simpleframework.util.thread.Scheduler; import java.io.IOException; import java.io.PrintStream; import java.net.InetSocketAddress; import java.net.SocketAddress; public class FooTest { public static class AsynchronousService implements Container { private Scheduler queue; public class Task implements Runnable { private final Response response; private final Request request; public Task(Request request, Response response) { this.response = response; this.request = request; } public void run() { PrintStream body = null; try { body = response.getPrintStream(); long time = System.currentTimeMillis(); response.set("Content-Type", "text/plain"); response.set("Server", "HelloWorld/1.0 (Simple 4.0)"); response.setDate("Date", time); response.setDate("Last-Modified", time); body.println("Hello World"); } catch (IOException e) { throw new RuntimeException(e); } finally { if (body != null) body.close(); } } } public AsynchronousService(Scheduler queue) { this.queue = queue; } public void handle(Request request, Response response) { Task task = new Task(request, response); queue.execute(task); } } public static void main(String[] list) throws Exception { Scheduler scheduler = new Scheduler(5); Container container = new AsynchronousService(scheduler); Connection connection = new SocketConnection(container); SocketAddress address = new InetSocketAddress(8080); connection.connect(address); } } -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb -----Inline Attachment Follows----- _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Toby <tob...@gm...> - 2010-10-14 19:41:12
|
Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases. |
From: Niall G. <gal...@ya...> - 2010-09-28 00:52:12
|
Hi, Its really quite easy to do this. All you have to do is grab the headers from the request and use them to build a request on HTTPClient. Here is an example of how to populate HTTPClient headers. http://simpleweb.svn.sourceforge.net/viewvc/simpleweb/trunk/src/benchmark/java/org/simpleframework/http/validate/test/Client.java?revision=1448&view=markup Also if you checkout other releate classes in this packge you can see how to write an async proxy. Depending on how asynchronous you want it it may be good to execute every HTTP transaction using a java.util.concurrent.Executor. Niall --- On Mon, 27/9/10, Fábio Matos <fab...@gm...> wrote: > From: Fábio Matos <fab...@gm...> > Subject: Re: [Simpleweb-Support] Help needed. > To: "Simple support and user issues" <sim...@li...> > Received: Monday, 27 September, 2010, 9:27 AM > See attached file. > > Regards, > Fábio Matos > > > > 2010/9/27 Arshad Ansari <ars...@gm...>: > > Thank you. But I'm new to mailing list, don't know > where to search it. > > I'm using my mail client to send and receive messages. > :) > > Can I get a direct url to that post? > > Thanks and regards, > > Arshad > > > > 2010/9/27 Fábio Matos <fab...@gm...>: > >> Sorry, > >> But that code is property of my company and so I > cannot give it to you. > >> Try to code it, if not using HTTPS is not that > hard. > >> > >> P.S.: I already made a simple example using Simple > with SSL in this > >> mailing list, you can use that for starting. > >> > >> Regards, > >> Fábio Matos > >> > >> > >> 2010/9/27 Arshad Ansari <ars...@gm...> > >>> > >>> Thanks for the reply. > >>> Do you have a working copy of your project? or > any place from where I > >>> can check out the code. I would really > appreciate it. I must be able > >>> to decide quickly. The other option is > xLightWeb, which provides both > >>> the HTTPServer as well as HTTPClient. However, > it has a learning > >>> curve. I'm running out of time, which is why > looking for the simplest > >>> solution that would allow me to stop myself > from reinventing the > >>> wheel, otherwise, I'll have to code those > classes myself. > >>> Thanks and regards, > >>> Arshad > >>> > >>> 2010/9/27 Fábio Matos <fab...@gm...>: > >>> > Hi, > >>> > > >>> > I did a project using Simple and > HttpClient > >>> > (http://hc.apache.org/httpcomponents-client-ga/index.html) > to make an > >>> > HTTP proxy. > >>> > > >>> > Basicly what I did was Simple talked with > the Client and HttpClient > >>> > talked with the destination server. The > real work was converting the > >>> > messages from Simples to HttpClient and > back. > >>> > Also, making it support HTTPS was no > peach. One side note, using > >>> > HTTPS, because Simple does not support > the CONNECT handshake, you > >>> > cannot use it directly as browser proxy > with HTTPS. > >>> > > >>> > Client <----> Simple <-- > convertion layer --> HttpClient <----> Server > >>> > > >>> > Hope it helps. > >>> > > >>> > Regards, > >>> > Fábio Matos > >>> > > >>> > > >>> > 2010/9/26 Arshad Ansari <ars...@gm...> > >>> >> > >>> >> Hello, > >>> >> I'm new to Simple and I am trying to > create the asynchronous proxy > >>> >> example. Can anyone please point me > to the documentation or tutorials > >>> >> that I can follow. Or do I have to > peep into source code to understand > >>> >> how it really works? I need to create > that example as a proof of > >>> >> concept for my project. Any help will > be extremely appreciated. > >>> >> Thanks and regards, > >>> >> Arshad. > >>> >> > >>> >> > ------------------------------------------------------------------------------ > >>> >> Start uncovering the many advantages > of virtual appliances > >>> >> and start using them to simplify > application deployment and > >>> >> accelerate your shift to cloud > computing. > >>> >> http://p.sf.net/sfu/novell-sfdev2dev > >>> >> > _______________________________________________ > >>> >> Simpleweb-Support mailing list > >>> >> Sim...@li... > >>> >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >>> > > >>> > > ------------------------------------------------------------------------------ > >>> > Start uncovering the many advantages of > virtual appliances > >>> > and start using them to simplify > application deployment and > >>> > accelerate your shift to cloud > computing. > >>> > http://p.sf.net/sfu/novell-sfdev2dev > >>> > > _______________________________________________ > >>> > Simpleweb-Support mailing list > >>> > Sim...@li... > >>> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >>> > > >>> > >>> > ------------------------------------------------------------------------------ > >>> Start uncovering the many advantages of > virtual appliances > >>> and start using them to simplify application > deployment and > >>> accelerate your shift to cloud computing. > >>> http://p.sf.net/sfu/novell-sfdev2dev > >>> > _______________________________________________ > >>> Simpleweb-Support mailing list > >>> Sim...@li... > >>> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> > >> > ------------------------------------------------------------------------------ > >> Start uncovering the many advantages of virtual > appliances > >> and start using them to simplify application > deployment and > >> accelerate your shift to cloud computing. > >> http://p.sf.net/sfu/novell-sfdev2dev > >> _______________________________________________ > >> Simpleweb-Support mailing list > >> Sim...@li... > >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >> > > > > > ------------------------------------------------------------------------------ > > Start uncovering the many advantages of virtual > appliances > > and start using them to simplify application > deployment and > > accelerate your shift to cloud computing. > > http://p.sf.net/sfu/novell-sfdev2dev > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment > and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Fábio M. <fab...@gm...> - 2010-09-27 16:27:59
|
See attached file. Regards, Fábio Matos 2010/9/27 Arshad Ansari <ars...@gm...>: > Thank you. But I'm new to mailing list, don't know where to search it. > I'm using my mail client to send and receive messages. :) > Can I get a direct url to that post? > Thanks and regards, > Arshad > > 2010/9/27 Fábio Matos <fab...@gm...>: >> Sorry, >> But that code is property of my company and so I cannot give it to you. >> Try to code it, if not using HTTPS is not that hard. >> >> P.S.: I already made a simple example using Simple with SSL in this >> mailing list, you can use that for starting. >> >> Regards, >> Fábio Matos >> >> >> 2010/9/27 Arshad Ansari <ars...@gm...> >>> >>> Thanks for the reply. >>> Do you have a working copy of your project? or any place from where I >>> can check out the code. I would really appreciate it. I must be able >>> to decide quickly. The other option is xLightWeb, which provides both >>> the HTTPServer as well as HTTPClient. However, it has a learning >>> curve. I'm running out of time, which is why looking for the simplest >>> solution that would allow me to stop myself from reinventing the >>> wheel, otherwise, I'll have to code those classes myself. >>> Thanks and regards, >>> Arshad >>> >>> 2010/9/27 Fábio Matos <fab...@gm...>: >>> > Hi, >>> > >>> > I did a project using Simple and HttpClient >>> > (http://hc.apache.org/httpcomponents-client-ga/index.html) to make an >>> > HTTP proxy. >>> > >>> > Basicly what I did was Simple talked with the Client and HttpClient >>> > talked with the destination server. The real work was converting the >>> > messages from Simples to HttpClient and back. >>> > Also, making it support HTTPS was no peach. One side note, using >>> > HTTPS, because Simple does not support the CONNECT handshake, you >>> > cannot use it directly as browser proxy with HTTPS. >>> > >>> > Client <----> Simple <-- convertion layer --> HttpClient <----> Server >>> > >>> > Hope it helps. >>> > >>> > Regards, >>> > Fábio Matos >>> > >>> > >>> > 2010/9/26 Arshad Ansari <ars...@gm...> >>> >> >>> >> Hello, >>> >> I'm new to Simple and I am trying to create the asynchronous proxy >>> >> example. Can anyone please point me to the documentation or tutorials >>> >> that I can follow. Or do I have to peep into source code to understand >>> >> how it really works? I need to create that example as a proof of >>> >> concept for my project. Any help will be extremely appreciated. >>> >> Thanks and regards, >>> >> Arshad. >>> >> >>> >> ------------------------------------------------------------------------------ >>> >> Start uncovering the many advantages of virtual appliances >>> >> and start using them to simplify application deployment and >>> >> accelerate your shift to cloud computing. >>> >> http://p.sf.net/sfu/novell-sfdev2dev >>> >> _______________________________________________ >>> >> Simpleweb-Support mailing list >>> >> Sim...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >>> > >>> > ------------------------------------------------------------------------------ >>> > Start uncovering the many advantages of virtual appliances >>> > and start using them to simplify application deployment and >>> > accelerate your shift to cloud computing. >>> > http://p.sf.net/sfu/novell-sfdev2dev >>> > _______________________________________________ >>> > Simpleweb-Support mailing list >>> > Sim...@li... >>> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >>> > >>> >>> ------------------------------------------------------------------------------ >>> Start uncovering the many advantages of virtual appliances >>> and start using them to simplify application deployment and >>> accelerate your shift to cloud computing. >>> http://p.sf.net/sfu/novell-sfdev2dev >>> _______________________________________________ >>> Simpleweb-Support mailing list >>> Sim...@li... >>> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Arshad A. <ars...@gm...> - 2010-09-27 14:51:05
|
Thank you. But I'm new to mailing list, don't know where to search it. I'm using my mail client to send and receive messages. :) Can I get a direct url to that post? Thanks and regards, Arshad 2010/9/27 Fábio Matos <fab...@gm...>: > Sorry, > But that code is property of my company and so I cannot give it to you. > Try to code it, if not using HTTPS is not that hard. > > P.S.: I already made a simple example using Simple with SSL in this > mailing list, you can use that for starting. > > Regards, > Fábio Matos > > > 2010/9/27 Arshad Ansari <ars...@gm...> >> >> Thanks for the reply. >> Do you have a working copy of your project? or any place from where I >> can check out the code. I would really appreciate it. I must be able >> to decide quickly. The other option is xLightWeb, which provides both >> the HTTPServer as well as HTTPClient. However, it has a learning >> curve. I'm running out of time, which is why looking for the simplest >> solution that would allow me to stop myself from reinventing the >> wheel, otherwise, I'll have to code those classes myself. >> Thanks and regards, >> Arshad >> >> 2010/9/27 Fábio Matos <fab...@gm...>: >> > Hi, >> > >> > I did a project using Simple and HttpClient >> > (http://hc.apache.org/httpcomponents-client-ga/index.html) to make an >> > HTTP proxy. >> > >> > Basicly what I did was Simple talked with the Client and HttpClient >> > talked with the destination server. The real work was converting the >> > messages from Simples to HttpClient and back. >> > Also, making it support HTTPS was no peach. One side note, using >> > HTTPS, because Simple does not support the CONNECT handshake, you >> > cannot use it directly as browser proxy with HTTPS. >> > >> > Client <----> Simple <-- convertion layer --> HttpClient <----> Server >> > >> > Hope it helps. >> > >> > Regards, >> > Fábio Matos >> > >> > >> > 2010/9/26 Arshad Ansari <ars...@gm...> >> >> >> >> Hello, >> >> I'm new to Simple and I am trying to create the asynchronous proxy >> >> example. Can anyone please point me to the documentation or tutorials >> >> that I can follow. Or do I have to peep into source code to understand >> >> how it really works? I need to create that example as a proof of >> >> concept for my project. Any help will be extremely appreciated. >> >> Thanks and regards, >> >> Arshad. >> >> >> >> ------------------------------------------------------------------------------ >> >> Start uncovering the many advantages of virtual appliances >> >> and start using them to simplify application deployment and >> >> accelerate your shift to cloud computing. >> >> http://p.sf.net/sfu/novell-sfdev2dev >> >> _______________________________________________ >> >> Simpleweb-Support mailing list >> >> Sim...@li... >> >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > >> > ------------------------------------------------------------------------------ >> > Start uncovering the many advantages of virtual appliances >> > and start using them to simplify application deployment and >> > accelerate your shift to cloud computing. >> > http://p.sf.net/sfu/novell-sfdev2dev >> > _______________________________________________ >> > Simpleweb-Support mailing list >> > Sim...@li... >> > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> > >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Fábio M. <fab...@gm...> - 2010-09-27 14:30:52
|
Sorry, But that code is property of my company and so I cannot give it to you. Try to code it, if not using HTTPS is not that hard. P.S.: I already made a simple example using Simple with SSL in this mailing list, you can use that for starting. Regards, Fábio Matos 2010/9/27 Arshad Ansari <ars...@gm...> > > Thanks for the reply. > Do you have a working copy of your project? or any place from where I > can check out the code. I would really appreciate it. I must be able > to decide quickly. The other option is xLightWeb, which provides both > the HTTPServer as well as HTTPClient. However, it has a learning > curve. I'm running out of time, which is why looking for the simplest > solution that would allow me to stop myself from reinventing the > wheel, otherwise, I'll have to code those classes myself. > Thanks and regards, > Arshad > > 2010/9/27 Fábio Matos <fab...@gm...>: > > Hi, > > > > I did a project using Simple and HttpClient > > (http://hc.apache.org/httpcomponents-client-ga/index.html) to make an > > HTTP proxy. > > > > Basicly what I did was Simple talked with the Client and HttpClient > > talked with the destination server. The real work was converting the > > messages from Simples to HttpClient and back. > > Also, making it support HTTPS was no peach. One side note, using > > HTTPS, because Simple does not support the CONNECT handshake, you > > cannot use it directly as browser proxy with HTTPS. > > > > Client <----> Simple <-- convertion layer --> HttpClient <----> Server > > > > Hope it helps. > > > > Regards, > > Fábio Matos > > > > > > 2010/9/26 Arshad Ansari <ars...@gm...> > >> > >> Hello, > >> I'm new to Simple and I am trying to create the asynchronous proxy > >> example. Can anyone please point me to the documentation or tutorials > >> that I can follow. Or do I have to peep into source code to understand > >> how it really works? I need to create that example as a proof of > >> concept for my project. Any help will be extremely appreciated. > >> Thanks and regards, > >> Arshad. > >> > >> ------------------------------------------------------------------------------ > >> Start uncovering the many advantages of virtual appliances > >> and start using them to simplify application deployment and > >> accelerate your shift to cloud computing. > >> http://p.sf.net/sfu/novell-sfdev2dev > >> _______________________________________________ > >> Simpleweb-Support mailing list > >> Sim...@li... > >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > ------------------------------------------------------------------------------ > > Start uncovering the many advantages of virtual appliances > > and start using them to simplify application deployment and > > accelerate your shift to cloud computing. > > http://p.sf.net/sfu/novell-sfdev2dev > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Arshad A. <ars...@gm...> - 2010-09-27 13:50:19
|
Thanks for the reply. Do you have a working copy of your project? or any place from where I can check out the code. I would really appreciate it. I must be able to decide quickly. The other option is xLightWeb, which provides both the HTTPServer as well as HTTPClient. However, it has a learning curve. I'm running out of time, which is why looking for the simplest solution that would allow me to stop myself from reinventing the wheel, otherwise, I'll have to code those classes myself. Thanks and regards, Arshad 2010/9/27 Fábio Matos <fab...@gm...>: > Hi, > > I did a project using Simple and HttpClient > (http://hc.apache.org/httpcomponents-client-ga/index.html) to make an > HTTP proxy. > > Basicly what I did was Simple talked with the Client and HttpClient > talked with the destination server. The real work was converting the > messages from Simples to HttpClient and back. > Also, making it support HTTPS was no peach. One side note, using > HTTPS, because Simple does not support the CONNECT handshake, you > cannot use it directly as browser proxy with HTTPS. > > Client <----> Simple <-- convertion layer --> HttpClient <----> Server > > Hope it helps. > > Regards, > Fábio Matos > > > 2010/9/26 Arshad Ansari <ars...@gm...> >> >> Hello, >> I'm new to Simple and I am trying to create the asynchronous proxy >> example. Can anyone please point me to the documentation or tutorials >> that I can follow. Or do I have to peep into source code to understand >> how it really works? I need to create that example as a proof of >> concept for my project. Any help will be extremely appreciated. >> Thanks and regards, >> Arshad. >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Fábio M. <fab...@gm...> - 2010-09-27 13:12:28
|
Hi, I did a project using Simple and HttpClient (http://hc.apache.org/httpcomponents-client-ga/index.html) to make an HTTP proxy. Basicly what I did was Simple talked with the Client and HttpClient talked with the destination server. The real work was converting the messages from Simples to HttpClient and back. Also, making it support HTTPS was no peach. One side note, using HTTPS, because Simple does not support the CONNECT handshake, you cannot use it directly as browser proxy with HTTPS. Client <----> Simple <-- convertion layer --> HttpClient <----> Server Hope it helps. Regards, Fábio Matos 2010/9/26 Arshad Ansari <ars...@gm...> > > Hello, > I'm new to Simple and I am trying to create the asynchronous proxy > example. Can anyone please point me to the documentation or tutorials > that I can follow. Or do I have to peep into source code to understand > how it really works? I need to create that example as a proof of > concept for my project. Any help will be extremely appreciated. > Thanks and regards, > Arshad. > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |