You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/04/10 21:32:19 UTC

DO NOT REPLY [Bug 34391] New: - add PayPal IPN sample (thread-safe)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34391>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34391

           Summary: add PayPal IPN sample (thread-safe)
           Product: HttpClient
           Version: Nightly Builds
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Commons HttpClient
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


It would be great to have a thread-safe example for the paypal IPN in the CVS
src/examples
(http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/?only_with_tag=HTTPCLIENT_2_0_BRANCH)

i.e. the key-store and trust-store for this method need NOT be global conversely
how one would extend the paypal sample code
(https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-code-outside#) with 
...
  SSLContext sslc = SSLContext.getInstance("TLS");
  sslc.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
  SSLSocketFactory sf = sslc.getSocketFactory();
  URL u = new URL("https://server.domain.tld");
  HttpsURLConnection.setDefaultSSLSocketFactory(sf); //Not thread-safe!!! :(
  HttpsURLConnection uc = (HttpsURLConnection) u.openConnection();
  ...
in order to have it use SSL (see also their forum
http://www.paypaldev.org/topic.asp?TOPIC_ID=9272)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org