2010-04-05 15:38 UTC
Thank you Barry for the code, I am trying to adapt it to put data into a file I have on my web server.
I think I have butchered it somehow....
I tried, maybe I have not formated something properly?
I am really not sure about how to format the new data to push into the file.....
Based on what you had, I think it follows the file path? I tried " this is new data for the file"....
Thanks for the help, I know I am asking for a lot of help, I just am really stuck with this :P
This is what I tried.....
(defun push ()
(setq webObj nil)
(setq strUrl (strcat "http://stampingsolutionsgroup.com/rcmtool/stationformdata/formdata_bob.txt" " this is new data for the file"))
(setq webObj (vlax-invoke-method (vlax-get-acad-object) 'GetInterfaceObject "WinHttp.WinHttpRequest.5.1"))
(vlax-invoke-method webObj 'Open "GET" strUrl :vlax-true)
(vlax-invoke-method webObj 'Send)
);end defun
I think I have butchered it somehow....
I tried, maybe I have not formated something properly?
I am really not sure about how to format the new data to push into the file.....
Based on what you had, I think it follows the file path? I tried " this is new data for the file"....
Thanks for the help, I know I am asking for a lot of help, I just am really stuck with this :P
This is what I tried.....
(defun push ()
(setq webObj nil)
(setq strUrl (strcat "http://stampingsolutionsgroup.com/rcmtool/stationformdata/formdata_bob.txt" " this is new data for the file"))
(setq webObj (vlax-invoke-method (vlax-get-acad-object) 'GetInterfaceObject "WinHttp.WinHttpRequest.5.1"))
(vlax-invoke-method webObj 'Open "GET" strUrl :vlax-true)
(vlax-invoke-method webObj 'Send)
);end defun