Re: does XMLHTTP work over SLL




"bigbillydotcom" <bigbillydotcom@xxxxxxxxxxxxxxxxx> wrote in message
news:19E13D9C-F202-40C1-A253-5E2ED4D51C32@xxxxxxxxxxxxxxxx
I recently discovered (well..for myself!) the XMLHTTP object and fell in
love
I thought I had finally found a way to leverage my server side scripting
without having to postback pages
and I could use client side vbscript (we require our users to use IE6)
I could just send the requests off and have them write back without
leaving
the page
It was all working so well - I completed an entire module, then uploaded
it
to my SSL secured website
but then
IT DIDNT WORK (That's love for ya)

Well...thats not precisely correct - The functions that only "read" data
worked fine, but the functions that called asp pages that did
add/change/delete functions would just not return anything - no errors -
no
other signs of problems - the pages just didnt process

For instance
- I created a function to get the description of an item from the
database,
which i would then write to a textbox
-----That worked on development server and SSL server - no problem!
- I created a function to delete an item from the database
-----That worked on development server - but NOT THE SSL server - Problem!

I did read in some documentation that it doesnt work over SSL (wish I
would
have read it first), but I wonder why it worked for the "read" functions,
but
none of the "add/change/delete" functions would work

Here is an example of a "add" function that WOULD work on the development
server, but WOULD NOT work on SSL server

<SCRIPT LANGUAGE=vbscript>

function AddTrkOpt()

Dim objXMLHTTP, xml,resvar
' Create an xmlhttp object:
Set xml = CreateObject("Microsoft.XMLHTTP")

' Opens the connection to the remote server.
urlStr =
"AutoStepAddTrkOpt.asp?HdrRef="+cstr(document.thisForm.AddBLTrkOpts.value)
xml.Open "get", urlStr, False

' Actually Sends the request and returns the data:
xml.Send

'when page processes correctly, it will return a value of "done"
if xml.responseText = "done" then
'call function to create listbox of all items
call GetAllBox
'call function to create listbox of selected items
call getselbox
'clear all item description textbox
document.thisForm.TrkOptDesc.value=""
'clear selected item description textbox
document.thisForm.TrkOptDescSel.value=""
end if

Set xml = Nothing

end function

</script>

Now - that script worked on development server (Non-SSL), but on the SSL
server, it would return with "done", but the actual database "insert"
never
took place

SO - HAS ANYBODY HAD ANY EXPERIENCE WITH GETTING THE ADD/CHANGE/DELETE
METHODS TO WORK ON SLL USING THE XMLHTTP OBJECT?
--

There is no need to shout.

I suspect your focusing on the wrong thing. XMLHTTP works fine over SSL
from within IE6. It's highly unlikely that SSL has anything to do with what
database operations are allowed.


bigbilly saxon


.



Relevant Pages

  • Re: encrypt password for webservices
    ... When you say about limitation of IIS/SLL (I assume it should be SSL) ... > 3) Requests can be multi-threaded, and some requests can even be droped if ... which allows the server to find appropriate EncryptionKey ... > encryption. ...
    (microsoft.public.dotnet.security)
  • RE: [fw-wiz] httport 3snf
    ... Require authentication for outgoing SSL requests through your proxy server. ...
    (Firewall-Wizards)
  • Re: ISA 2004 / SSL 1311 not 443 error on Dell OpenManage 4.4
    ... I ran into the same problem with ISA2004 server. ... / add the "tunnelportrange" for custom SSL ports? ... >> requests from this port. ...
    (microsoft.public.isa.configuration)
  • Upgrading OWA 5.5 to OWA 2k
    ... Currently we have an existing server that fields all OWA requests via SSL and passes them on to the backend server which is E2k. ...
    (microsoft.public.exchange2000.general)
  • Most users cant connect to our SSL-- help!
    ... I've included all relevant SSL settings from our ... Subject: Large percentage of customers cannot connect to https: ... server, which then grinds indefinitely. ... "2) Your secure order form is not working. ...
    (comp.security.misc)