0

我有这个 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';
4

1 回答 1

0

您可以从代码中调用外部可执行文件,如这个问题所示

或者你可以使用libcurl java 实现

于 2013-05-01T22:14:58.163 回答