Hi,
Please does anyone know how to send (attach) the ubl file?
Please does anyone know how to send (attach) the ubl file?
Try
oHttp := CreateObject( 'MSXML2.ServerXMLHTTP.6.0' )
Catch
oHttp := CreateObject( 'Microsoft.XMLHTTP' )
End
oHttp:Open( "POST" ,"https://demoefaktura.mfin.gov.rs/api/publicApi/sales-invoice/ubl/upload?requestId=999", .F.)
oHttp:SetRequestHeader( "Accept","text/plain")
oHttp:SetRequestHeader( "Content-Type","multipart/form-data")
oHttp:SetRequestHeader( "ApiKey","17d897ab-da9a-44c0-a809-268bf252a93e")
Try
oHttp:Send( oHttp )
Catch
MsgInfo("no send")
EndBest regards
Milos
[ FWH 21.11 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603) ]
Milos
[ FWH 21.11 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603) ]