| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: POSTing to an ASP script via HTTPS |
| RandyChilders childers.rr@pg.com From: Fayetteville, AR USA Posts: 2 Member Since: 02/07/03 |
posted February 7, 2003 4:35 PM Hello everyone-- I'm stuck. I'm using the Web Tool to interact with a secure site. Everything is working fine, except for interacting with the .asp scripts. I've followed the examples I've found for posting with parameters, but it doesn't seem to be working. The page in question is pretty simple: <meta http-equiv='content-type' content='text/html;'> <HTML><HEAD><TITLE>Delete DSS Request: 55542561</TITLE> <LINK REL="stylesheet" TYPE="text/css" HREF="/styles/site_styles.css"> <Script Language=JavaScript src="/include/common_client_scriptLib.js"></SCRIPT> </HEAD> <HTML><BODY onLoad=refreshWindow() BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH =0> <script language=JavaScript> function refreshWindow() { window.opener.location.reload();window.close();} </script> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 VALIGN=TOP><TR><TD ALIGN=LEFT CLASS=normal><TABLE VALIGN=top BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=Center WIDTH="362" CLASS=subDark STYLE=background-color:#000080>Delete DSS Request: 55542561</TD><TD STYLE=Background-color:#FFFFFF> <a class=bold href=javascript:window.close()>Close</a> </TD></TR></TABLE> <form method=post action=/custom/delete_request.asp> <input type=hidden name=jobid value=55542561> <div align=center><input type=Submit name=theAction value="Yes"> <input type=Submit name=theAction value="No" onClick=window.close()></div> </form> </TD></TR></TABLE></BODY></HTML> And the code I'm trying to use looks like this: With webInet sPostData = "jobid=" & oQuery.JobID & "&theAction=Yes" .URL = mvarBaseURL & "/custom/delete_request.asp" sResponse = "" .Post sPostData, , sResponse, sHeaders, mvarLogin, mvarPassword End With Any information will be greatly appreciated! thanks, Randy Childers |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted February 10, 2003 9:06 AM Hi Randy, I would start by finding out what a working message sent by IE looks like (when using an HTML form to do the Post). It should not be too difficult to then construct and send the same message with the Http control. -ken |
| RandyChilders childers.rr@pg.com From: Fayetteville, AR USA Posts: 2 Member Since: 02/07/03 |
posted February 10, 2003 11:31 AM Thanks for the response, Ken. I tried installing some shareware port sniffers to get a peek at it, but all I saw was the encrypted message. I'm pretty new to this, though -- is there a technique you can suggest for seeing what IE is posting? thank you, Randy |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted February 10, 2003 11:45 AM Hi, Once you have established that your form works, a quick and easy method would be to run the debug server (included with the tool) on port 80 (no need to use 443), and change the Url in the Html script to point at this server. The server will show you exactly what was sent. You can do then do the same with the Http control, and compare the two message requests. -ken |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|