NetTalk Central

Author Topic: POST string howto  (Read 2940 times)

estadok

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • EstaSoft
    • Email
POST string howto
« 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.
Clarion 9.0.10376
NetTalk 7.26
SecWin 6.25
StringTheory 1.92

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: POST string howto
« Reply #1 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

estadok

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • EstaSoft
    • Email
Re: POST string howto
« Reply #2 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                 

Clarion 9.0.10376
NetTalk 7.26
SecWin 6.25
StringTheory 1.92

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: POST string howto
« Reply #3 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

estadok

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • EstaSoft
    • Email
Re: POST string howto
« Reply #4 on: June 15, 2012, 06:27:55 AM »
OK! Thanks Bruce!
I do not have to change the encoding. Now the strings match!
Clarion 9.0.10376
NetTalk 7.26
SecWin 6.25
StringTheory 1.92