Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212

    Unanswered: Read Status from another web server.

    Hi Guys,

    okay..here is the case:

    There is this form that send an e-mail and sms to the user.
    We bought a sms service from a service provider.
    From the action="destination" of the form, we just specify the URL of the sms service provider and the "to", "from" and wat not.

    So the page..logically..gets directed to the sms service provider page.
    If successfull..it will prompt out a "Statusmsg".

    But it does not "redirect" back to my website.

    So..how can I like read the statusmsg..and if succesfull I redirect back to my page.......

    Get it???
    I was thinking of inline frames....that possible?
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  2. #2
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212
    Any ideas anyone?
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  3. #3
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    Why don't you use the MSXML parser components to do a http post to the site with the details you need? Then you don't need to redirect at all.

    You can get the response from the web server, analyze it and decide what you need to do next.

    If you want an example just yell.

  4. #4
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212
    "MSXML parser components to do a http post"

    wow....new! new!....sample..yes!..yes!...( sounding like golumn now)
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  5. #5
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    I'll be heading up to the office in about 30 mins so I will try and post something from there.

    In the meantime have a look at this to get an idea....

    http://msdn.microsoft.com/library/en...asp?frame=true

  6. #6
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    here's an example of how I used it.

    Code:
    Const CHAT_PATH  = "http://10.35.210.63/remoteadmin/"
    Const CHAT_ADMINROOM  = "admin_rooms.asp"
    
    Dim objDal, arrParam, errNumber, errDescription
    Dim  MessageRoom
    
    'On Error Resume Next
    Dim strPostData
    Dim strReturn
    Dim mobjHTTP
    
    strPostData = "MessageRoom=" & Server.URLEncode(MessageRoom) 
    Set mobjHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
    
    if Err.number <> 0 then
      HandleError err.Number, err.Description, "Error creating MSXML2.ServerXMLHTTP.4.0 component"
    end if
    
    mobjHTTP.Open "POST", CHAT_PATH & CHAT_ADMINROOM, False
    mobjHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    mobjHTTP.Send strPostData
    
    If err.number <> 0 Then
      HandleError err.Number, err.Description, "Error posting data to " & CHAT_PATH & CHAT_ADMINROOM
    End If
    
    strReturn = mobjHTTP.responseText
    
    set mobjHTTP = nothing
    
    Response.Write strReturn
    Any questions??

  7. #7
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212
    I need time to process the code with my small brain..if I got any q..it won't be too soon..
    Thanks in advance...
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  8. #8
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    No problems. Just PM me with any questions. I'm more likely to notice a PM then a new post in this thread.

  9. #9
    Join Date
    Dec 2003
    Posts
    454
    Hi rokslide

    I'm very interested in MSXML2.ServerXMLHTTP.4.0. Can you tell me where I can find the details?

  10. #10
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    What do you want in the way of details?? The component is part of the standard MSXML package.

    The first link further up will take you to the MSDN reference library for the component (eg. details of the methods and functions available).

    If you have specific questions fire me a PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •