Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Send data with POST request #208

Closed
shubham0987 opened this issue Dec 11, 2021 · 1 comment
Closed

Send data with POST request #208

shubham0987 opened this issue Dec 11, 2021 · 1 comment

Comments

@shubham0987
Copy link

Hi Team,

I'm trying to do a post request with raw body data.

const options: HttpOptions ={ url, data: data, headers: {'Content-Type': 'text/plain'} }; return from(Http.post(options)); }

On PHP API I'm not getting anything

$request = \Slim\Slim::getInstance()->request(); $data = json_decode($request->getBody());

$data here is blank

Can someone help ?

@vamfixed
Copy link

vamfixed commented Jan 6, 2022

i'm getting this too... when i tried on web i used json_decode(file_get_contents('php://input'), true);
but on real mobile device im getting null

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants