Author |
Message
|
saviobarr |
Posted: Thu Feb 04, 2016 8:22 am Post subject: Identify HTTP method |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
Hi Everybody,
I am trying to know which is the HTTP method of an incoming message (POST, GET, PUT or DELETE).
I my flow I have a HTTPInput node, and right before it I placed a Compute node, and tried to use the piece of code below
InputLocalEnvironment.HTTP.Input.RequestLine.Method
But it is coming empty... can anyone help, pls?
Many thanks
Savio Barros |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 04, 2016 8:35 am Post subject: Re: Identify HTTP method |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
saviobarr wrote: |
tried to use the piece of code below
InputLocalEnvironment.HTTP.Input.RequestLine.Method
But it is coming empty |
I don't see anywhere in the InfoCenter that says the node populates that field (or any field) with the method.
saviobarr wrote: |
can anyone help, pls? |
Put a Trace node directly after the HTTPInput node. See which LocalEnvironment field (if any) has the method value. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
saviobarr |
Posted: Thu Feb 04, 2016 8:42 am Post subject: |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 04, 2016 8:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
saviobarr wrote: |
I just got it. I only had to check the "Advanced/Set destination list" property  |
I am enriched by this new knowledge. Which shows how often I use an HTTPInput node.
So not a LocalEnvrionment variable per se, but accessible. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 04, 2016 8:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Simbu |
Posted: Thu Feb 04, 2016 6:19 pm Post subject: |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
|
Back to top |
|
 |
saviobarr |
Posted: Fri Feb 05, 2016 12:20 am Post subject: |
|
|
Centurion
Joined: 21 Oct 2014 Posts: 100 Location: Sao Paulo, Brazil
|
Hi,
I did that before
Tks |
|
Back to top |
|
 |
|