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]:[tok...@[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
<[email protected]> wrote:
> Thank you very much. It's work fine.
> I don't know before what URL pattern should be like this: http://
> [username]:[tok...@[
> host]/[url prefix].[protocol]
> Can you tell me where ESME document to describe this subject?
>
> Regards,
>

Reply via email to