You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/RequestsLibrary/__init__.py
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,30 @@ class RequestsLibrary(RequestsOnSessionKeywords, DeprecatedKeywords):
94
94
| status_code | Integer Code of responded HTTP Status, e.g. 404 or 200. |
95
95
| text | Content of the response, in unicode. If ``response.encoding`` is ``None``, encoding will be guessed using chardet. The encoding of the response content is determined based solely on HTTP headers, following RFC 2616 to the letter. If you can take advantage of non-HTTP knowledge to make a better guess at the encoding, you should set ``response.encoding`` appropriately before accessing this property. |
96
96
| url | Final URL location of Response. |
97
+
98
+
= POST a Multipart-Encoded File =
99
+
100
+
RequestsLibrary makes it simple to upload Multipart-encoded files, but in order to make sure that the
101
+
Python Library provides automatically the right ``Content-Length`` and ``multipart/form-data; boundary=...``
102
+
headers you SHOULD NOT provide those headers manually, use the keyword
103
+
`Get File For Streaming Upload` instead that opens the files in binary mode.
104
+
105
+
Below an example of multiple file sent over a single POST:
106
+
107
+
| Test Post Multiple Files
108
+
| ${file_1}= Get File For Streaming Upload files/randombytes.bin
109
+
| ${file_2}= Get File For Streaming Upload files/randombytes.bin
0 commit comments