in reply to Re^5: HTTP::Request::Common output format.
in thread HTTP::Request::Common output format.
may i request you for a sample code to send an xml with header and body content over to a REST server ??
my requirement is to convert the below curl command into a REST webservice call to transfer sample.xml to the server.
curl -X POST -H "Content-Type: multipart/form-data" -H "ABC_APP_ID: <Application_ID>" -H "IABC_APP_PASSWORD: <Application_Password>" -F "deliverable_file=@sample.xml" -F "data_transaction_code=SOA" -F "file_name=RRR-xxxxxxxxxx.mmddyyyy-hhmmss.ext" -F "agency_task_order_parameter=12345667890" -F "contractor_service_request_number=123456780123456789" -F "deliverable_type=Notification" -F "data_transaction_file_date=2016-01-21" -F "tags=["tagSample1", "tagSample2"]" "http://<server>:<port>/cdx/abc/gsa/deliverables"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: HTTP::Request::Common output format.
by Your Mother (Archbishop) on Apr 19, 2016 at 20:45 UTC | |
|
Re^7: HTTP::Request::Common output format.
by Corion (Patriarch) on Apr 19, 2016 at 18:23 UTC | |
|
Re^7: HTTP::Request::Common output format.
by Your Mother (Archbishop) on Apr 19, 2016 at 19:50 UTC |