--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Which version you used, and did you had something else in pom.xml, too?
Hi,Which version you used, and did you had something else in pom.xml, too?
Some things that come to mind (just guesses without code check):
- test case file encoding
- server side encoding (If not told explicitly in headers)
Normal post at least goes as should, and following test case passes:
Post Requests
Create Session httpbin http://httpbin.org
&{data}= Create Dictionary name=bulkan surname=evcimen utf-text=ääkköstesti
&{headers}= Create Dictionary Content-Type=application/x-www-form-urlencoded
${resp}= Post Request httpbin /post data=${data} headers=${headers}
Log ${resp.json}
Dictionary Should Contain Value ${resp.json['form']} bulkan
Dictionary Should Contain Value ${resp.json['form']} evcimen
Dictionary Should Contain Value ${resp.json['form']} ääkköstesti
Accept-Encoding | gzip,deflate |
User-Agent | Apache-HttpClient/4.5.2 (Java/1.8.0_144) |
Content-Type | text/plain; charset=ISO-8859-1 |
Connection | Keep-Alive |
Accept-Encoding | gzip, deflate |
User-Agent | python-requests/2.18.4 |
Connection | keep-alive |
Accept | */* |
Documentation: | Send a POST request on the session object found using the |
---|---|
Start / End / Elapsed: | 20171030 14:42:27.319 / 20171030 14:42:28.971 / 00:00:01.652 |
14:42:27.379 | INFO | Starting new HTTP connection (1): httpbin.org |
14:42:28.935 | DEBUG | "POST /post HTTP/1.1" 200 512 |
14:42:28.962 | DEBUG | post response: { "args": {}, "data": "\"\\u00e4\\u00e4kk\\u00f6steksti\\u00e4 on t\\u00e4ss\\u00e4\"", "files": {}, "form": {}, "headers": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "close", "Content-Length": "54", "Content-Type": "application/json", "Host": "httpbin.org", "User-Agent": "python-requests/2.10.0" }, "json": "\u00e4\u00e4kk\u00f6steksti\u00e4 on t\u00e4ss\u00e4", "origin": "131.207.242.5", "url": "http://httpbin.org/post" } |
14:42:28.965 | INFO | Post Request using : alias=httpbin, uri=/post, data="\u00e4\u00e4kk\u00f6steksti\u00e4 on t\u00e4ss\u00e4", headers={u'Content-Type': u'application/json'}, files=None, allow_redirects=True |