NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: estadok on June 15, 2012, 03:28:16 AM

Title: POST string howto
Post by: estadok on June 15, 2012, 03:28:16 AM
Hi all!

What method make string like this one %C0%E4%EC%E8%ED?
I took this string from POST and i want to do this manualy.
Title: Re: POST string howto
Post by: Bruce on June 15, 2012, 04:26:43 AM
it depends which class you are using but usually,

.EncodeWebString

which is in the nethttp.clw file if you want to see it.

cheers
Bruce
Title: Re: POST string howto
Post by: estadok on June 15, 2012, 05:34:52 AM
The line that I wrote above is obtained from my webapp NetWebServerWorker(p_web)(Get this from web:LastGet field).
I need to get the same string from NetWebClient.
When i use ClassName.EncodeWebString(SomeString) the resulting string is different from p_web.
For example (same string)
                                                      p_web --> %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82
ClassName.EncodeWebString(SomeString) --> %CF%F0%E8%E2%E5%F2                 

Title: Re: POST string howto
Post by: Bruce on June 15, 2012, 06:11:55 AM
ylou can put some debugging into nethttp.clw if you like, but as far as I recall both those classes use the same method.

Bruce
Title: Re: POST string howto
Post by: estadok on June 15, 2012, 06:27:55 AM
OK! Thanks Bruce!
I do not have to change the encoding. Now the strings match!