我有这个 curl 语句,我正在尝试将其转换为可以在 java 程序中用于测试目的的东西:
curl -v -k -X POST -H 'Content-Type: application/json' -d '{"auth_data": {"email_password": {"email": "email@email.com", "password": "password"}},"registration_data": { "domain":"Device", "device_name": "name" ,"app_name": "XXX", "app_version": "XXX","device_model": "XXX","os_version": "XXX","device_type": "ABCDEFGHIJ","device_serial": "D01234567890"}, "requested_token_type" : ["bearer"]}' 'https://url.domain.com';