Skip to main content

Request

The post request looks like the following code (html only):

So the request must be multiform/form-data type and must contain one file on the name action-xmlagentxmlfile.

<html>
<head><meta content="text/html; CHARSET=UTF-8"></head>
<body>
<form action="https://www.szamlazz.hu/szamla/" method="post" enctype="multipart/form-data">
XML file: <input type="file" name="action-xmlagentxmlfile">
E-mail attachments if applies:
attached file 1. <input type="file" name="attachfile1">
attached file 2. <input type="file" name="attachfile2">
attached file 3. <input type="file" name="attachfile3">
attached file 4. <input type="file" name="attachfile4">
attached file 5. <input type="file" name="attachfile5">
<input type="submit" name="generate" value="Issue invoice">
</form>
</body>
</html>

You can also try out the same HTML code here:

XML file
Attached file 0.
Attached file 1.
Attached file 2.
Attached file 3.
Attached file 4.

It is probably easier to stick with curl and simply post the xml than clicking a button on a sample html page.

curl -v -F action-xmlagentxmlfile=@agent.xml -c ./cookies.txt -o response.pdf https://www.szamlazz.hu/szamla/

The request must be multiform/form-data type and must contain one file with the name action-xmlagentxmlfile