Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Transfers to a Web Site
Message
From
12/05/2004 10:25:54
 
 
To
11/05/2004 15:22:55
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00902945
Message ID:
00903164
Views:
23
Hi Mike,
I use some way to send file/files to web server. I using WWC for that
CURSORTOXML(lcALias1,"lcXML1",1,0,0,"1")
CURSORTOXML(lcALias2,"lcXML2",1,1,0,"1")
lcFile1 = ADDBS(SYS(2023))+SYS(3)+".xml"
lcFile2 = ADDBS(SYS(2023))+SYS(3)+".xml"
STRTOFILE(lcXML1,lcFile1)
STRTOFILE(lcXML2,lcFile2)
oHTTP = Createobject("wwHTTP")
oHTTP.nHttpPostMode = 2
oHTTP.AddPostKey(lcAlias1,lcFile1,.T.)
oHTTP.AddPostKey(lcAlias2,lcFile2,.T.)
Wait "Please wait... request processing..." Window Nowait
lcHTML = oHTTP.HTTPGet(lcUploadURL)
oHTTP.HTTPClose()

*** Display result from server
>I am familiar with transferring files to a FTP site, but in this case I have to transfer .dbf files from a local workstation to a HTTP site.
>
>I suspect that this would be a good application for XML but in the VFP Help files I can finds no reference to making file transfers like this.
>
>Has anyone crossed this bridge before?
>
>Mike Smith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform