It's basically creating an XML/HTTP stream/object, then fetching a
document with it (which happens to be via POST), then checking the
status of the document retrieval and populating a variable with the
response.

People often use this technique as a sort of poor-man's web service.
You can do anything you want with the text in strRetval.  It doesn't
have to be XML, although that is the spirit/purpose of the class/object.
If so desired, the code could next parse through the response using the
other classes/methods/properties of Microsoft.XMLHTTP.

I'm not a Java/JSP person, but I'm sure Java has an equivalent
library/classes to accomplish the same thing.

Does that answer your question?  Is there something more specific you
wanted to know?

- Vieth

> -----Original Message-----
> From: Akshay Vyas [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, August 22, 2004 11:55 AM
> To: [EMAIL PROTECTED]
> Subject: [ASP] HTTP(S) and POST
> 
> Hi
> 
> Basically I am a JSP guy. I wanted to do a HTTP(S) and POST. 
> I have got an ASP example code. Can anybody translate this 
> code in JSP? It would be a great help.
> 
> Thanks,
> Akshay Vyas.
> 
> Dim xml
> Dim strStatus
> Dim strRetval
> Set xml = Server.CreateObject("Microsoft.XMLHTTP")
> xml.open "POST", "https://certification.authorize.net/gateway/transact
> .dll?" & vPostData & "", false
> xml.send ""
> strStatus = xml.Status
> strRetval = xml.responseText
> Set xml = nothing
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> --------------------~--> Make a clean sweep of pop-up ads. 
> Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
> --------------------------------------------------------------
> ------~-> 
> 
> --------------------------------------------------------------
> -------    
>  Home       : http://groups.yahoo.com/group/active-server-pages
> ---------------------------------------------------------------------
>  Post       : [EMAIL PROTECTED]
>  Subscribe  : [EMAIL PROTECTED]
>  Unsubscribe: [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to