You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mike Oliver <Mi...@open4businessonline.com> on 2021/05/24 07:55:23 UTC

how to get the remote ip address for a consumer

Using Restlet as a producer I want to get the remote IP address of
requestors, but when I log all headers I do not see what I am looking for.

COGLog1 message headers = {Accept=*/*, Accept-encoding=gzip, deflate, br,
breadcrumbId=ID-DESKTOP-BGDEAUC-1621737044609-2-1, CamelHttpMethod=POST,
CamelHttpQuery=restletMethod=POST, CamelHttpUri=
http://localhost:8288/cog/update?restletMethod=POST,
CamelRestletRequest=POST http://localhost:8288/cog/update?restletMethod=POST
HTTP/1.1, CamelRestletResponse=HTTP/1.1 - OK (200) - The request has
succeeded, Connection=keep-alive, Content-length=189,
Content-type=application/json, Host=localhost:8288,
org.restlet.startTime=1621842356233,
Postman-token=7c157e1e-4642-431c-bd1e-d642607b23ed, restletMethod=POST,
User-agent=PostmanRuntime/7.26.8}

I am using blueprint XML dsl




*Mike Oliver** Founder**, Open 4 Business Online*
Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
US Toll free: 1-800-985-4766 **NEW*
http://www.o4bo.com
Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
[image: Facebook]
<http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
<http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
<https://angel.co/open-4-business-online/> [image: Blogger]
<http://blog.open4businessonline.com/> [image: eBay]
<http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
<http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
Plus Page] <https://plus.google.com/113688478700619104336/posts>
Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
Skype] MikeOliverAZ


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Re: how to get the remote ip address for a consumer

Posted by Mike Oliver <Mi...@open4businessonline.com>.
ok, good to know, use Netty4-http instead?

Thanks,

Where can I buy your book?

Mike



*Mike Oliver** Founder**, Open 4 Business Online*
Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
US Toll free: 1-800-985-4766 **NEW*
http://www.o4bo.com
Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
[image: Facebook]
<http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
<http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
<https://angel.co/open-4-business-online/> [image: Blogger]
<http://blog.open4businessonline.com/> [image: eBay]
<http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
<http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
Plus Page] <https://plus.google.com/113688478700619104336/posts>
Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
Skype] MikeOliverAZ



On Tue, May 25, 2021 at 9:52 PM Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> camel-restlet is deprecated, do not use that if you can avoid using it.
>
> On Mon, May 24, 2021 at 9:55 AM Mike Oliver
> <Mi...@open4businessonline.com> wrote:
> >
> > Using Restlet as a producer I want to get the remote IP address of
> > requestors, but when I log all headers I do not see what I am looking
> for.
> >
> > COGLog1 message headers = {Accept=*/*, Accept-encoding=gzip, deflate, br,
> > breadcrumbId=ID-DESKTOP-BGDEAUC-1621737044609-2-1, CamelHttpMethod=POST,
> > CamelHttpQuery=restletMethod=POST, CamelHttpUri=
> > http://localhost:8288/cog/update?restletMethod=POST,
> > CamelRestletRequest=POST
> http://localhost:8288/cog/update?restletMethod=POST
> > HTTP/1.1, CamelRestletResponse=HTTP/1.1 - OK (200) - The request has
> > succeeded, Connection=keep-alive, Content-length=189,
> > Content-type=application/json, Host=localhost:8288,
> > org.restlet.startTime=1621842356233,
> > Postman-token=7c157e1e-4642-431c-bd1e-d642607b23ed, restletMethod=POST,
> > User-agent=PostmanRuntime/7.26.8}
> >
> > I am using blueprint XML dsl
> >
> >
> >
> >
> > *Mike Oliver** Founder**, Open 4 Business Online*
> > Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> > US Toll free: 1-800-985-4766 **NEW*
> > http://www.o4bo.com
> > Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> > [image: Facebook]
> > <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> > Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> > <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> > <https://angel.co/open-4-business-online/> [image: Blogger]
> > <http://blog.open4businessonline.com/> [image: eBay]
> > <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> > <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> > Plus Page] <https://plus.google.com/113688478700619104336/posts>
> > Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com
> [image:
> > Skype] MikeOliverAZ
> >
> >
> > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> > Virus-free.
> > www.avast.com
> > <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: how to get the remote ip address for a consumer

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

camel-restlet is deprecated, do not use that if you can avoid using it.

On Mon, May 24, 2021 at 9:55 AM Mike Oliver
<Mi...@open4businessonline.com> wrote:
>
> Using Restlet as a producer I want to get the remote IP address of
> requestors, but when I log all headers I do not see what I am looking for.
>
> COGLog1 message headers = {Accept=*/*, Accept-encoding=gzip, deflate, br,
> breadcrumbId=ID-DESKTOP-BGDEAUC-1621737044609-2-1, CamelHttpMethod=POST,
> CamelHttpQuery=restletMethod=POST, CamelHttpUri=
> http://localhost:8288/cog/update?restletMethod=POST,
> CamelRestletRequest=POST http://localhost:8288/cog/update?restletMethod=POST
> HTTP/1.1, CamelRestletResponse=HTTP/1.1 - OK (200) - The request has
> succeeded, Connection=keep-alive, Content-length=189,
> Content-type=application/json, Host=localhost:8288,
> org.restlet.startTime=1621842356233,
> Postman-token=7c157e1e-4642-431c-bd1e-d642607b23ed, restletMethod=POST,
> User-agent=PostmanRuntime/7.26.8}
>
> I am using blueprint XML dsl
>
>
>
>
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeoliveraz@open4businessonline.com [image:
> Skype] MikeOliverAZ
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2