Alpha Video Training
Results 1 to 2 of 2

Thread: Http_post_page_2()

  1. #1
    VAR
    Real Name
    Kevin Tucker
    Join Date
    Dec 2001
    Location
    Fort Worth, TX
    Posts
    61

    Default Http_post_page_2()

    Is it possible to override the headers that are used by default for the http_post_page2 function?

  2. #2
    VAR
    Real Name
    Kevin Tucker
    Join Date
    Dec 2001
    Location
    Fort Worth, TX
    Posts
    61

    Default Re: Http_post_page_2()

    In case anyone else wants to know how to do this you need to use a ole object:

    dim url as c
    dim body as c
    url = "http://www..."
    body = file.to_string("c:\C762622.xml")
    obj = ole.create("Msxml2.SERVERXMLHTTP")
    obj.open("POST", url,.f.)
    obj.setRequestHeader("Content-Type", "text/xml")
    obj.send(body)
    ?obj.responseText

    The third line from the bottom allows you to override the normal content-type that alpha uses for all http_post_page2() transactions.

Bookmarks

Posting Permissions

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