esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Hirsch <hirsch.d...@gmail.com>
Subject Re: How to update a ESME status with a Java application?
Date Thu, 14 Jan 2010 09:37:33 GMT
Regarding the URL to use the twitter api, you have multiple options
depending on the implementation.

The java code you initially posted looks correct (you can compare it
to my code here :
http://cwiki.apache.org/ESME/simple-use-case-ofbiz-sends-message-to-esme.html)
. In such Java implementations, the URL would be
"http://localhost:8081/twitter/statuses/update.xml". In such
situations, you do not include the basic authentication in the URL but
add it via the Request Parameter "Authorization",

The use of basic authentication via URL
("http://[username]:[token]@[host]/[url prefix]/[command]") is usually
just for actions (http://cwiki.apache.org/ESME/actions.html) -
especially those including http posts and other types of
implementations.

D.

On Thu, Jan 14, 2010 at 9:34 AM, Chatree Srichart
<chatree.srichart@gmail.com> wrote:
> Thank you very much. It's work fine.
> I don't know before what URL pattern should be like this: http://
> [username]:[token]@[
> host]/[url prefix].[protocol]
> Can you tell me where ESME document to describe this subject?
>
> Regards,
>

Mime
View raw message