Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: code is working an VB but not in ASP
User79

Posts: 1
Member Since: 04/26/02
posted April 26, 2002 3:40 AM

Follwing code of VB is working fine....

Private Sub cmdPost_Click()
Dim http1 As Object
Dim Result As String
Dim Data As String
Data = "command=GetParam&version=3.4&session_id=" & "953270362" & "&aicc_data ="

Set http1 = CreateObject("Dart.Http.1")
http1.Timeout = 30000

http1.url = "http://contentlab.saba.com:80/Vendor?aiccSessionKey=953270362-ems/storeAICCData.saba-auid=notdc000000000006883-mn=1-productId=prdct000000000002022-sessionKey=953270362-au_id=A001"

  http1.Post Data, , Result
  MsgBox Result
  Set http1 = Nothing
End Sub



But corresponding ASP code is giving error, that is..

Dart.Http.1 error '800a2ee7'

The server name could not be resolved.


ASP code is....

Dim http1
Dim Result
Dim Data
Data = "command=GetParam&version=3.4&session_id=" & "953270362" & "&aicc_data ="
Set http1 = CreateObject("Dart.Http.1")
http1.Timeout = 300000000

http1.Url = "http://contentlab.saba.com:80/Vendor?aiccSessionKey=1203549563-ems/storeAICCData.saba-auid=notdc000000000006883-mn=1-productId=prdct000000000002022-sessionKey=1203549563-au_id=A001"

http1.Post Data, , Result
Response.Write "value = " & Result
Set http1 = Nothing






K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 26, 2002 9:07 AM


Hi,
When I try your script, I see:
value =
When I set Result as a string:
Result = ""
prior to the Post, I see:
General Error (101). User Session Timed Out
I did not see the server name error.
Please make sure you are using the latest version of the control:
http://www.dart.com/downloads/update.exe
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX