Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ankitgaur
Visitor

How to send body part in http “POST” method ?

We have developed one Roku web app and we want to add the functionality to Make forget password of user for which we want to make a POST api call. User Provides his login username which we want to pass as body part of POST api call. Api is designed to take calling parameters in the body part.

We have tested the Api on POSTMAN providing username in the body part and it works.
We want to make API call Containing body part with post method.
API link is "http://ec2-54-244-62-69.us-west-2.compute.amazonaws.com/v1/users/auth/password/reset/" 
Email is a any valid email address.
How to pass Body in the POST Api ?
0 Kudos
3 REPLIES 3
belltown
Roku Guru

Re: How to send body part in http “POST” method ?

I really hope you're not seriously considering passing users' credentials in clear text over an unencrypted http connection!
0 Kudos
ankitgaur
Visitor

Re: How to send body part in http “POST” method ?

Hi Belltown,
Thanks for the reply.

This scenario is just for testing purpose.
 
0 Kudos
EnTerr
Roku Guru

Re: How to send body part in http “POST” method ?

I would have thought POSTing a "body part" is illegal :shock:
- but no, turns out it's okay as long as it's an "exempt specimen", see postal service's regulation on that: http://pe.usps.com/text/pub52/pub52apxc_024.htm
0 Kudos