Hi everione,
I need send formData in httpclient.setrequestheader
has anyone done this?
My code:
long ll_return
string lb_file
//bloob lb_file
http.setrequestheader( 'Cache-Control', 'no-cache')
//http.setrequestheader('Content-Type', 'multipart/form-data')
http.setrequestheader('Content-Type', 'application/json')
http.setrequestheader( 'If-Modified-Since', 'Thu, 1 Jan 1970 00:00:00 GMT')
http.setrequestheader( 'Authorization', 'bearer ' + ls_token)
ll_file = fileopen('C:\Users\rodrigo.rosa\Documents\file_send.txt', textmode!)
li_bytes = FileReadex(ll_arquivo, lb_file)
fileclose(ll_arquivo)
http.setrequestheader( 'file', (lb_file))
ll_return = http.SendRequest('PUT', ls_url)