Can i post xml file over http using sikulix.

Asked by Padam Jain on 2020-06-16

Hi ,

I am using sikulix 2.0.1 on windows 10.
I would like to post some xml files on HTTP Server before starting test.

is it possible to do that with sikulix that i can post xml file on HTTP.


Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Has nothing to do with the SikuliX features.

Use appropriate Python/Jython features.

Be aware: SikuliX uses Python language level 2.7

TestMechanic (ndinev) said : #2

You can use python libs, but also consider using external tools like curl. I found this more reliable and reasonable for my testing frameworks.

Padam Jain (padamjain) said : #3

Getting bunch of errors while using httplib and urlilib.
it would be great help if you have any sample code for how to do it.

I simply want to connect, GET and POST on http server.

RaiMan (raimund-hocke) said : #4

Sorry - no example - you have to ask the net.

In my experience stackoverflow is the best place.

Another idea might be, to make a command script using curl, that you can run using supprocess.Popen.

Can you help with this problem?

Provide an answer of your own, or ask Padam Jain for more information if necessary.

To post a message you must log in.