+ Reply to Thread
Results 1 to 8 of 8

Thread: Post To Http

  1. #1

    Unhappy Post To Http

    I know there are 3 variables that can receive information back from a post..
    > If the function succeeds, the %_SB_ERRORCODE% return value is zero.
    > If the function succeeds, the %_SB_RETURN% variable value holds the server response.
    > If the function succeeds, the %_SB_RETURNEX% variable value holds the complete HTTP response.
    > If the function fails, the return value is nonzero.

    But no matter what I send back, it never shows up in the returnex..
    I tried xml format, strings, in the header, body.. nothing seems to work..

    What's the secret to received the response back ? how does my server send it ?

    Thanks

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Post To Http

    Hello,

    I'll answer your question with an example later today or tomorrow.

    Friedrich

  3. #3
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Post To Http

    Hello,

    I think I know where you are coming from. As I understand it, you do not only want the HTTP header response (that is what %_SB_RETURNEX% holds) but you would like to retrieve the HTTP contents, right?

    For example, the following POST method:

    http://www.cs.tut.fi/cgi-bin/run/~jk...lt.cgi?m=4&n=9

    The server returns (HTTP contents):

    "Multiplication results
    The product of 4 and 9 is 36"


    In the current SB81, you can only retrieve the HTTP header without the contents.

    But we have changed it now in our latest internal version so you can retrieve the contents in the %_SB_RETURN% runtime variable. Please see the attached screenshot. The left dialog can't retrieve the HTTP contents, the right dialog (compiled with the latest internal SB version) holds the server contents response (#2).

    Would this help in your case?

    Friedrich
    Attached Images Attached Images  

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Post To Http

    Hello,

    If you have an active SB maintenance and support plan subscription, you can download the following development build free-of-charge:

    http://www.lindersoft.com/sb8/sb81_4399_Dev.exe

    This build #4399 supports the new HTTP contents function.

    Friedrich

  5. #5

    Default Re: Post To Http

    Fred,
    YOU ARE A GENIUS!!!!! ANDDDDDDDDDDDDDDDDD
    MY HEROOOOOOOOOOOOO!!!!!

    Thank you , Thank you and did I say Thank you??? Never Mind... here it goes again.. THANK YOU.

    This is exactly what I needed..

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Post To Http

    Perfect !!! Thank YOU so much

    Friedrich

  7. #7
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Post To Http

    Oops. I've looked up your user name and now I see who you are

  8. #8

    Default Re: Post To Http

    Lol, we text each other all time on fb.

    I just don't like to abuse a friendship, I will stand in line like all the others when asking for help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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