Home:ALL Converter>How to send data in request body in get request in Ionic http native?

How to send data in request body in get request in Ionic http native?

Ask Time:2021-05-25T01:37:14         Author:Neeraj Upadhayay

Json Formatter

I need to send some data in request body of a get request in Ionic Http native.

I am using the below code to send the get request, but this converts the data to query string.

this.http.get(
      'apiendpoint',
      data ,
      headers
    );
}

using the below plugin :

import { HTTP } from '@ionic-native/http/ngx';

below is the link to official documentaation:

https://github.com/silkimen/cordova-plugin-advanced-http

Author:Neeraj Upadhayay,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67676507/how-to-send-data-in-request-body-in-get-request-in-ionic-http-native
yy