Following code is not working (the WEB SERVICE don´t receive the parameters). What is wrong?
string | urlname,urlheader="" | ||
blob | urldata | ||
long | err,lon | ||
Inet | iinet_base |
n_cst_internet data
//-----
iinet_base=CREATE inet
data=CREATE n_cst_internet
//
err=GetContextService("Internet", iinet_base)
urlname="http://office.cs.com.gt/sitios/hpstore2/webservice/setVenta.php?"
//
urldata=blob("headid=1&KNLLM&fecha=27/02/2014&factura=2014&nit=66066530&nombre=Keny%20Ramos%20Botello&sku=662248-001&unidades=10&costouniatio=2&vendedorid=2")
lon=Len(urldata)
urlheader="Content-Length: "+String(lon)+"~n~n"
//
err=iinet_base.PostURL(urlname,urldata,urlheader,data)
Messagebox("urlpost-caso 2: "+string(err),data.is_data)
//
destroy data
destroy iinet_base