PDA

View Full Version : Post To Http



willie53
04-23-2014, 05:39 PM
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 :)

linder
04-24-2014, 05:39 AM
Hello,

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

Friedrich

linder
04-25-2014, 05:19 AM
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/~jkorpela/mult.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

linder
04-25-2014, 08:32 AM
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

willie53
04-25-2014, 05:39 PM
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..
:) :D :) :D

linder
04-26-2014, 01:51 AM
Perfect !!! Thank YOU so much :)

Friedrich

linder
04-26-2014, 02:19 AM
Oops. I've looked up your user name and now I see who you are :) :D

willie53
04-26-2014, 09:13 AM
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.:)