Recent

Author Topic: LAMW: how to send json on post request with jhttp_client  (Read 1597 times)

ujang

  • Newbie
  • Posts: 5
LAMW: how to send json on post request with jhttp_client
« on: May 09, 2024, 04:12:19 am »
LAMW: how to send json on post request with jhttp_client

i know there is postjsondata(url, json_text)

but postjsondata not respect addclientheader

So how to send json data to post request and custom headers like useragent?
And any async funtion for this?

schumi

  • New Member
  • *
  • Posts: 46
Re: LAMW: how to send json on post request with jhttp_client
« Reply #1 on: May 10, 2024, 10:20:51 pm »
hi,
PostJSONData can send JSON, PostNameValueDataAsync can use header with AddNameValueData.

I have start to create "PostRESTDataAsync" function from PostSOAPDataAsync, but didn't finish it.

ujang

  • Newbie
  • Posts: 5
Re: LAMW: how to send json on post request with jhttp_client
« Reply #2 on: May 11, 2024, 05:51:02 am »
yes PostJSONData, can send json, but cannot modify headers

check on https://httpbin.org/post
PostNameValueDataAsync, cannot send "json", just send "data"
httpbin.org, said json=null

ujang

  • Newbie
  • Posts: 5
Re: LAMW: how to send json on post request with jhttp_client
« Reply #3 on: May 11, 2024, 05:51:43 am »
I have start to create "PostRESTDataAsync" function from PostSOAPDataAsync, but didn't finish it.

waiting...

 

TinyPortal © 2005-2018