🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages Started by Renim Mon, 10 Apr 2006 08:03
TIdHTTP Request & UTF-8
#579
Author: Renim
Date: Mon, 10 Apr 2006 08:03
11 lines
1615 bytes
How can I send http-request (GET) in UTF-8, using TIdHTTP?
for example: http://AppServer/webapp?param1=value1
server supposes that string value1 is in UTF-8.
I've written such code:

AnsiString HttpReq = "http://AppServer/webapp?param1=<some
text>"
AnsiString Utf8HttpReq = AnsiToUtf8(HttpReq)
idhttp->Get(Utf8HttpReq,ResponseStream);

But there is something wrong - server recieves strange characters...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads