Aleksandr Ivanov
10/15/2020, 12:24 PMlouiscad
10/15/2020, 12:50 PMmbonnin
10/15/2020, 12:54 PMAleksandr Ivanov
10/15/2020, 12:58 PMmbonnin
10/15/2020, 1:05 PMAleksandr Ivanov
10/15/2020, 1:12 PM:method: POST
:path: /graphql
:scheme: https
content-type: application/json; charset=utf-8
content-length: 316
accept-encoding: gzip
user-agent: okhttp/4.5.0
pragma: no-cache
cache-control: no-cache
{"operationName":"DriverSchedulePageQuery","variables":{"filter":{"from":"2020-10-15","to":"2020-10-29"}},"query":"query DriverSchedulePageQuery($filter: DateFilter!) { driverSchedule(filter: $filter) { __typename content { __typename date duties { __typename id driverShiftId type startAt endAt } } totalPages } }"}
on iOS (400 response):
POST /graphql HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: Driver%20App/140 CFNetwork/1197 Darwin/19.6.0
Connection: keep-alive
Accept: */*
Accept-Language: en-us
Content-Length: 316
Accept-Encoding: gzip, deflate, br
{"operationName":"DriverSchedulePageQuery","variables":{"filter":{"from":"2020-10-15","to":"2020-10-29"}},"query":"query DriverSchedulePageQuery($filter: DateFilter!) { driverSchedule(filter: $filter) { __typename content { __typename date duties { __typename id driverShiftId type startAt endAt } } totalPages } }"}
The main difference I see is Content-Type
content-type: application/json; charset=utf-8
and it works. Thank you for advice to use Charles 👍louiscad
10/15/2020, 3:22 PMmbonnin
10/15/2020, 3:45 PMlouiscad
10/15/2020, 3:49 PMmbonnin
10/15/2020, 3:52 PMAleksandr Ivanov
10/15/2020, 7:49 PMmbonnin
10/16/2020, 1:56 PMAleksandr Ivanov
10/16/2020, 3:39 PMmbonnin
10/16/2020, 3:41 PMAleksandr Ivanov
10/16/2020, 6:53 PMmbonnin
10/16/2020, 6:56 PMAleksandr Ivanov
10/16/2020, 7:41 PM