Alpha Video Training
Results 1 to 6 of 6

Thread: HTTP_POST_PAGE2(), HTTP_FETCH(), or what?

  1. #1
    Member
    Real Name
    Abe Lewis
    Join Date
    Jan 2010
    Posts
    50

    Default HTTP_POST_PAGE2(), HTTP_FETCH(), or what?

    Hi, I need to send an HTTPS POST request with a custom Content Type header line. According to the documentation, HTTP_POST_PAGE2() supports HTTPS but not changing the header, and HTTP_FETCH supports a custom header, but not HTTPS.

    Is there a way to use one of these the way I need to, or is there another function I can use. I noticed a function called HTTP_GETPOST() in the Function Finder, but I can't find any documentation on that function anywhere.

    Thanks for any help!

    EDIT: Also noticed HTTP_FETCH_PAGE2_THREADSAFE(). How about that function? Would that work for what I need?
    Last edited by Alweth; 03-01-2010 at 05:13 PM.

  2. #2
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,695

    Default Re: HTTP_POST_PAGE2(), HTTP_FETCH(), or what?

    http_fetch() supports SSL and is what you want.

    Lenny Forziati
    Vice President, Internet Products and Technical Services
    Alpha Software Corporation

  3. #3
    Member
    Real Name
    Abe Lewis
    Join Date
    Jan 2010
    Posts
    50

    Default Re: HTTP_POST_PAGE2(), HTTP_FETCH(), or what?

    Lenny, thanks for getting back to me. Now that I look at the documentation closer, I see that HTTP_FETCH does support SSL. However, it still contains these lines, which, understandably, made me think it doesn't:

    Supported By

    Alpha Five Version 6 and Above

    Limitations

    HTTP_FETCH() does not support HTTPS.

    This should probably be removed.

  4. #4
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,695

    Default Re: HTTP_POST_PAGE2(), HTTP_FETCH(), or what?

    Yes, the documentation needs to be clarified. It did not support SSL in Version 6, but SSL was added in a later version (8 I think).

    Lenny Forziati
    Vice President, Internet Products and Technical Services
    Alpha Software Corporation

  5. #5
    Former Alpha Employee mheller's Avatar
    Real Name
    Martin Heller
    Join Date
    Apr 2008
    Location
    Andover, MA
    Posts
    261

    Default Re: HTTP_POST_PAGE2(), HTTP_FETCH(), or what?

    There are a whole bunch of somewhat obsolete documentation pages like this one. The other blatant example is all the functions and methods that say they only work on the desktop, but have worked on the Web since V9 Platinum came out.

    I will attack these problems (on the Wiki, not the other documentation) after I have integrated the V10 help with the rest of the Wiki, so that we'll only have to search one place for information instead of five.

  6. #6
    Member
    Real Name
    Abe Lewis
    Join Date
    Jan 2010
    Posts
    50

    Default Re: HTTP_POST_PAGE2(), HTTP_FETCH(), or what?

    I have a few more questions about HTTP_FETCH().

    Does it work in a A5W file? I've been using the following code:

    Code:
    dim settings as P
    
    settings.host = "merchantaccount.ptc.quickbooks.com"
    settings.port = 443
    settings.page = "/j/AppGateway"
    settings.method = "POST"
    settings.body = "<dummy />"
    settings.header = "Content-Type: application/x-qbmsxml"
    settings.SSL_ON = .t.
    settings.Validate_SSL_Cert = .f.
    
    qbmsresult = http_fetch(settings)
    But I get the following error:

    1801: Secure Sockets Layer was not able to verify certificate.

    Should this be possible with Validate_SSL_Cert set to false? I've checked the SSL connection both with Firefox and an online SSL Checker website, and both of them have no problem with the SSL connection. Is there something wrong with my settings above? I feel that that's the most likely problem, but looking at the documentation, I don't see a problem.

Similar Threads

  1. http_post_page2() or HTTP_POST
    By Steve Wood in forum Application Server Version 8
    Replies: 10
    Last Post: 06-27-2012, 02:09 PM
  2. HTTP_FETCH() and SOAP
    By David McCormick in forum Alpha Five Version 6
    Replies: 4
    Last Post: 05-09-2010, 07:26 PM
  3. How to send headers with the HTTP_POST_PAGE2() command
    By MRichard in forum Alpha Five Version 9 - Desktop Applications
    Replies: 3
    Last Post: 02-15-2010, 07:51 PM
  4. http_get() and http_fetch() not downloading correctly?
    By wmz in forum Application Server Version 10 - Web/Browser Applications
    Replies: 7
    Last Post: 01-13-2010, 10:08 AM
  5. http_fetch overlooked
    By jkukuda in forum Alpha Five Version 6
    Replies: 1
    Last Post: 09-27-2005, 12:00 PM

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
  •