Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem sending file with CL_HTTP_CLIENT

nicocastanio
Explorer
0 Likes
931

Hello,

There is a legal requirement in my country, in which is necessary to send a TXT file to a government’s website.

This website gives a response with a XML file.

I should send the TXT file with a HTML FORM, this form has 3 parameters ( user, pass, file path+name ) and is sending data through "POST" method using encoding type "multipart".

i.e.:

<FORM action="http://cottest.ec.gba.gov.ar/TransporteBienes/SeguridadCliente/presentarRemitos.do" enctype="multipart/form-data" method="POST" name="form"> 
    <P><LABEL for="user">User: </LABEL>
    <input type="text" name="user" value="" /><BR/>
    <LABEL for="pass">Pass: </LABEL>
    <input type="password" name="password" value="" /></P>
    <input type="file" name="file" value="" /><BR/>
    <input type="submit" />
</FORM>

I was working with a container and class CL_GUI_HTML_VIEWER and can send the file successfully, but in this way, i can’t read and process XML response.

I was trying with an alternative way, using class CL_HTTP_CLIENT, with some problems: if I send a HTML FORM with only user and pass fields, works fine, but if I try to send a file, doesn't work.

any idea?

anyone can help me?

I have points to give!!!

Regards,

Nicolas.-

2 REPLIES 2
Read only

nicocastanio
Explorer
0 Likes
639

Rich? Thomas? I bought your book guys.

Pliiiiis help.

Read only

nicocastanio
Explorer
0 Likes
639

Hello everyone,

Anyone have any idea?

Regards,

Nicolas.-