How to post content file of data using curl?


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 03-19-2018
How to post content file of data using curl?

HI All,

i want to asking about my case , how to post content file of data using curl.

currently if i wanna post data file , i can use this command below :

Code:
curl --cacert maxaj.cer -X POST -F 'fileupload=@/data/report_3300_xxx/log/traffic_3300_20180319_1051.txt' https://hostname:22414/mbpreport/

but my problem is , i just want post content files of "/data/report_3300_xxx/log/traffic_3300_20180319_1051.txt"

the content file is below:
Code:
2018-03-19 10:45|757|757|754|754
2018-03-19 10:46|801|801|804|804
2018-03-19 10:47|789|789|783|783
2018-03-19 10:48|800|800|808|808
2018-03-19 10:49|753|753|752|752

could u please help how to post only content file above with curl ?

Thanks
Fajar


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 03-19-2018 at 06:38 AM.. Reason: Added CODE tags.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
CURL - Post Form Isssue ( sequel ) Fred13 Web Development 4 2 Weeks Ago 12:33 PM
Curl - post form issue Fred13 Web Development 3 2 Weeks Ago 06:11 AM
Get data from GitHub using Curl Kochappa Shell Programming and Scripting 0 04-02-2017 05:13 AM
Wget and curl to post data SkySmart Shell Programming and Scripting 1 10-12-2016 06:03 PM
Curl command to post headers dineshaila Shell Programming and Scripting 1 05-26-2016 01:28 PM
How to get content of a webpage Curl vs Wget? baris35 Shell Programming and Scripting 1 12-27-2015 08:52 PM
Data Post with curl iddfcr Web Development 1 11-17-2014 11:34 AM
Curl Script - Post a file (multipart/form-data) Anooja G Shell Programming and Scripting 0 04-28-2014 09:08 AM
Using cURL to submit a post form hansvg Shell Programming and Scripting 2 07-24-2012 03:50 PM
Execution Problems with scan and change file data content patrick87 Shell Programming and Scripting 5 10-18-2010 03:45 AM
Scan and change file data content problem patrick87 Shell Programming and Scripting 12 10-15-2010 12:35 PM
Change file content based on data varunrbs Shell Programming and Scripting 6 08-18-2010 04:56 AM
Extract specific data content from a long list of data patrick87 Shell Programming and Scripting 11 12-14-2009 02:07 AM
maintaining form post session using curl Allasso Shell Programming and Scripting 1 01-13-2009 06:26 PM
Post Shell programming: Question about source a file and read data from the file ccwq Shell Programming and Scripting 3 08-04-2007 11:28 PM