Old 5th September 2007, 00:46   #1
khobbs
Junior Member
 
Join Date: Sep 2007
Posts: 2
Inetc post urlencode unicode

We are trying to figure a way to use the Inetc plugin post method with parameters that need to be urlencoded using unicode.

Does anyone know of a way to do this?
Does anyone have some NSIS script snippet that does this?

Thanks for you time.
khobbs is offline   Reply With Quote
Old 5th September 2007, 07:34   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Can you explain where do you want to use unicode: in URL encoded parameters (will be sent in http header, no ideas how to use unicode) or in the post message (http body, may be unicode I guess). Please note HEADER Inetc option (may be used to define content type in the second case):
/HEADER
Adds or replaces http request header. Common HEADER_TEXT format is "header: value".
Takhir is offline   Reply With Quote
Old 5th September 2007, 16:28   #3
khobbs
Junior Member
 
Join Date: Sep 2007
Posts: 2
At a minimum we need the body to be urlencoded.
We have text input for a form that needs conversion into urlencoded format and then POSTed.
khobbs is offline   Reply With Quote
Old 6th September 2007, 11:30   #4
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
While NSIS installers not use unicode, IMHO best way is to modify plug-in - for POST request conver user input ASCII string to unicode (in plug-in' C code) and use it in request. And do not forget to set correct charset in content type header.
Edited: BTW KAV reports not-a-virus:FraudTool.Win32.Takedawnload.a (detected May 21 2007, last plug-in update August 11 2007) on some test samples built using inetc.dll. Hackers use inetc?

Last edited by Takhir; 6th September 2007 at 11:51.
Takhir is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump