Linked Questions

0 votes
0 answers
878 views

curl -v -s -w "Response_Time %{time_total} Response_Code %{http_code}\n" -X POST -H "Content-Type: image/jpeg" -H "Authorization: Bearer '$token'" -H "x-api-key: '$key'"' -F "url=@https://api.ver/demo/...
Anilreddy Bedadhala's user avatar
0 votes
0 answers
732 views

I am trying to send a binary file (.parquet) to a web server via HTTP POST request. The python code below works flawlessly: url = 'http://localhost/update/id' f = open('/home/dev/datafiles/file....
holypriest's user avatar
-3 votes
1 answer
518 views

I'd like set a simple HTTP service (with PHP) to receive files from another computer with Linux curl and Windows Powershell. I have read internet resource, including PHP can't upload files to server? ...
Carlton Chen's user avatar
-1 votes
1 answer
352 views

I wrote a small flask server. The purpose is to upload files. The important part, is that this is a server which has only a REST API and doesn't render html and template files. This is the code: from ...
user1584421's user avatar
  • 3,933
-1 votes
1 answer
77 views

I want to create a small file upload web server with Flask. The caviat is that i want this to be a headless server. No HTML files or templates server. The user will hit the upload path with a (path+...
user1584421's user avatar
  • 3,933
-1 votes
2 answers
58 views

I send a json file by curl with this command and its work : curl -X POST -H "Content-Type: application/json" -d @/Users/test/testjson.json 'http://127.0.0.1:5000 I collect this data like ...
safar cafe's user avatar
0 votes
0 answers
48 views

I have a test case using The test library from Django. In my test I have the following: class TestLoadCurve(TestCase): def setUp(self): self.client = Client() self.test_user = ...
wfgeo's user avatar
  • 3,188
0 votes
0 answers
25 views

I need to upload a CSV file using CURL command. The API where I am posting this file only accepts file in UTF-8 encoding. Here is my CURL command: curl \ --request POST \ --url "url" \ ...
reactdesign's user avatar
300 votes
7 answers
431k views

I used this syntax to post a file along with some parameters: curl -v -include --form "key1=value1" --form upload=localfilename URL The file is around 500K in size. First of all, I see ...
Kamalakshi's user avatar
  • 7,688
60 votes
6 answers
205k views

I'm using Postman to send the following request: My controller looks like this: @RestController @RequestMapping(path = RestPath.CHALLENGE) public class ChallengeController { private final ...
StackJP's user avatar
  • 711
16 votes
3 answers
60k views

I am currently working on a project with php. Here I want to store the image into folder using move_uploaded_file but when I use the following code : if (move_uploaded_file($_FILES['file_promo_image'...
Rohitashv Singhal's user avatar
3 votes
1 answer
15k views

I am using UploadedFile class in symfony2 to upload image files. I have allowed images with mime type image/jpg and image/png. When I upload a png file from my system to server its mime type is ...
Ashish Awasthi's user avatar
8 votes
1 answer
32k views

I was trying to run curl command using PowerShell. below is the curl command curl --location --request POST "controller/lttrouter/v1/TestResult/process-data-results/" --form "synthesisreport=@"C:\...
Subrata Sarkar's user avatar
0 votes
1 answer
13k views

I'm construct an uploading multiple images API by Spring Restful. This is my API method: @RequestMapping(value = GiftURI.TEST_UPLOAD, method = RequestMethod.POST) public @ResponseBody String ...
Leo Le's user avatar
  • 835
2 votes
1 answer
7k views

I refer to this post Using curl to upload POST data with files and this answer to upload files. On Windows, curl -F "file=@‪/c/Users/lf/Desktop/HQ/README" https://example.com/upload curl: (26) ...
LF-DevJourney's user avatar

15 30 50 per page