| Michael 2004-03-27, 12:22 am |
| I have and issue trying to use the PostURL function I need to know
what is the correct syntax to post an XML file.
I currently have in my code:
Inet iinet
uo_inetresult ii_results
integer i,z
long ls_lenght
string urlname,geturlname
blob urldata
string ls_header
urldata=blob("")
ls_lenght=len(urldata)
ls_header = "POST /AUTHORIZE
HTTP/1.0~nMIME-Version:1.0~nContent-type:application/PTI21~nContent-length:1123~nContent-transfer-encoding:text~nRequest-number:1~nDocument-type:
Request" + "~n~n"
urlname= "http://'epayhipvar.paymentech.net/ authorize'"
GetContextService ( "Internet", iinet )
ii_results=create uo_inetresult
//i=iinet.geturl(geturlname,ii_results)
messagebox('',string(ii_blob))
i=iinet. PostURL(urlname,urldata,ls_header,443,ii
_results)
As I understood the urldata is the Blob specifying arguments to the
URL specified by urlname But my XML page dosen't have arguments. So I
passed the entrie XML data through this parameter and it still didn't
work. I'm getting error code -6. Can somebody help?
Thanks
Michael Mcleane
|