Simeon Mitev wrote:
Hi guys,
I am pretty new to the mailing list and I already have a question :-)
If you are familiar with PayPal instant payment notifications (IPN) you
probably know the mechanism:
1. PayPal server sends (http post) a notification to provide by the
customer URL.
2. The receiver is obligated to send back received data and provide
a secured key in addition.
3. PayPal server validates and confirms whether the data has been
really sent by him and whether the data is properly parsed by the
receiver.
I need to implement the same kind of proof of receive via http and the
question is how can I do this using
HttpDefaultClient, HttpPost and ResponseHandler ?
Is it possible once to open communication channels (read and write) and
then reuse them until the communication between both sides completes?
I am not entirely sure I understand the question. Of course, HttpClient
supports bidirectional communication as required by the HTTP spec.
However, HTTP protocol is based on the concept of request / response
exchanges. The client must issue a request in order to get a response
from the server, or, in other words, HTTP client is always an initiator
of a request / response exchange.
For details on HttpClient programming see:
http://hc.apache.org/httpcomponents-client/tutorial/html/
Hope this helps
Oleg
Thanks
@Simeon
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]