Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ankitgaur
Level 7

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
belltown
Level 7

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!
https://github.com/belltown/
0 Kudos
ankitgaur
Level 7

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
Level 8

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