-
Notifications
You must be signed in to change notification settings - Fork 0
Home
blueback edited this page Dec 27, 2017
·
5 revisions
POST送信を行います。
コンフィグファイル名を指定します。
postconnect.exe -input config.json
UTF8-BOM無しのJSON
- エクセルファイルをJSONファイルに変化するPHPへのPOST通信の例です。
- https://github.com/bluebackblue/postconnect/blob/master/source/test.xlsx
- https://github.com/bluebackblue/postconnect/blob/master/source/config.json
{
"host":"bbbproject.sakura.ne.jp",
"port":80,
"url":"/www/project_exceltojson/index.php?mode=upload",
"output":"output.dat",
"contents":[
{
"type":"binary",
"name":"upfile",
"path":"./test.xlsx",
"filename":"text.xlsx"
},
{
"type":"param",
"name":"type",
"value":"json"
}
]
}
- 通信先のホストを指定します。
- 通信先のポートを指定します。
- 通信先のURLを指定します。
- 受信結果を書き込むファイルを指定します。
- 送信するコンテンツを列挙します。
- binary : ファイルを送信します。
- param : パラメータを送信します。
- 重複しないコンテンツ名を指定します。
- binary の場合に指定します。
- 送信するファイルのファイルパスを指定します。
- 送信するファイル名を指定します。
- binary の場合に指定します。
- 送信先でファイルの判別などに使用されます。
- 送信するパラメータの文字列を指定します。