[Bug] [Http Source Connector v2] Post request with application/json
body doesn't work for paging Because of paging info was set as params
which add header application/x-www-form-urlencoded
#8431
Labels
Search before asking
What happened
I want to pull data from http via post request with body and paging like:
{
"pageIndex":1,
"pageSize":10,
"condition":{
"groupOp":"and",
"rules":[{
"field":"HTLX",
"op":"li",
"data":"xxx"
}
]
}
}
the
pageIndex
as the pageing.page_field to increment auto,as:1,2,3...with the conf below got Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported,Because the server only support
application/json
as request body.I review the Seatunnel dev branch source code ,And find the paging info has been treated as request params (UrlEncodedFormEntity)which add header “Content-Type :application/x-www-form-urlencoded;charset=UTF-8”
SeaTunnel Version
2.3.8
SeaTunnel Config
Running Command
seatunnel.sh -c $SEATUNNEL_HOME/scripts/chen_http_json.conf -n chen_http_json
Error Exception
Zeta or Flink or Spark Version
Zeta
Java or Scala Version
Java 17
Screenshots
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: