| Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development | Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web Enterprise for ActiveX Topic: Upgrade to OfficeXP WebASP .post() no longer working |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 28, 2002 4:34 PM I've gotten the latest updates, so I am fully up to date. I'm also running Win2K (with all patches). I'm posting a form to a secure server (and I've properly set the certificate). I use the Request.Body.Variables("Item") = "value" to set the content, but get the following response: Dart.WebASP.1: Each Item in Request.Body must contain a Ref with a String representing the Body part's name. Any thoughts? Mike |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 28, 2002 5:13 PM Hi, Try: Request.Variables("Item") = "value" instead of: Request.Body.Variables("Item") = "value" and it should work. -ken |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 29, 2002 9:07 AM Thanks for the reply. I mistyped the code, it is already coded as you suggested. Still, I get the message I indicated. Here's the code: sURL = "https://some.secure.site/servlet/?page=PgLogin" With oWebASP.Request.Header .Add 0, "Referer: " & oWebASP.Response.Url .Add 0, "Content-Type: application/x-www-form-urlencoded" .Add 0, "Cache-Control: no-cache" End With 'oWebASP.Request.Header With oWebASP.Request .Url = sURL .Variables("Dummy") = "true" End With 'oWebASP.Request oWebASP.Post |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 29, 2002 9:19 AM One more thing. I've tried the code where I replaced the .Request.Variables("Dummy") = "true" with a .Request.Body.Write "Dummy=true" -- and then the oWebASP.Post succeeds. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 29, 2002 12:10 PM Hi, I tried your code on my Win 2000 machine and it worked fine for me (I only changed the Url and the Referer dll. What are the version numbers of your DartSock and DartWebAsp.dlls? Thanks, -ken |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 29, 2002 12:39 PM Versions are: DartSock.dll = 2.2.0.16 DartWebAsp.dll = 1.6.0.3 Again, it appears this happened after a recnet Win2K patch or Office XP upgrade occured ... (Meaning, this code used to work for us ...) |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 29, 2002 1:13 PM Hi, Please first get the latest version (DartWebAsp.dll v1.6.0.4): http://www.dart.com/downloads/update.exe and let me know if the problem remains. If it does, please tell me what happens when you create a 1-button project with the code below. Thanks, -ken Private Sub Command1_Click() WebASP1.Request.URL = "http://www.dart.com/PostSample.asp" WebASP1.Request.Variables("Dummy") = "true" WebASP1.Post Debug.Print WebASP1.Response.Body.ReadString End Sub |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 29, 2002 1:43 PM Hi Ken, I updated the dlls (by running the executable you suggested I download) -- but the version of the DartWebAsp.dll has not changed, its still at 1.6.0.3. Are you sure that 1.6.0.4 has been released? Is there some other way to update the dlls? Thanks! Mike |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 29, 2002 1:52 PM Are you sure you have the WebEnterprise Tool installed? The Updater only updates DLL's if you have the tool installed. |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 29, 2002 1:55 PM Tony, I'm not sure how the machine was set up. But clearly, I have a license and the dll is registered. Why wouldn't the dll be updated under those circumstances? Especially from a deployment standpoint -- how do I redistribute the dlls in a scripting environment if the update utility won't update the installed dlls? Mike |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 29, 2002 2:11 PM Our updater is supplied as a tool so that the developer (That's you) can update the DLL's on the system where the development occurs. It would then be up to you to create an updater for YOUR program to give to your customers. |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 29, 2002 2:12 PM Ok, That's not a problem. Is the updater the only way to update the .dlls? Also, can you explain what I need to do in order to get the updater to update the dlls on my machine? Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 29, 2002 2:14 PM You have to install the Tool first, then Install the Update. If you can't find the original disk(s), just go to the downloads section of our website. |
| msheridan mike@evare.com From: Burlington, MA USA Posts: 8 Member Since: 05/28/02 |
posted May 29, 2002 2:50 PM Using the update dll, the sample code you gave works, but the code I've been trying to run has the same error. Is there any more information I can give you? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 29, 2002 3:52 PM Hi, I would try to ascertain what is different between your code and mine. If you need further assistance, please consider one of our Paid Support Packages. You can contact us at support@dart.com. Thanks, -ken |
| Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|