🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages Started by Willie Tue, 10 May 2005 11:11
TIdHTTP - 400 Bad Request
#1122
Author: Willie
Date: Tue, 10 May 2005 11:11
18 lines
1230 bytes
Hi all:

I use Indy component TIdHTTP in a for loop, and it got the error "400 Bad
Request".

for(int i=0; i<100; i++)
{
   IdHTTP->Post(...);
}

when the i=0, it worked fine.
when the i>=1, it got error.

How can I solve this problem?

Thank you very much.

Willie.
Re: TIdHTTP - 400 Bad Request
#1123
Author: Remy Lebeau (TeamB)
Date: Tue, 10 May 2005 16:48
12 lines
1242 bytes
"Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message
news:42809429@newsgroups.borland.com...

> when the i=0, it worked fine.
> when the i>=1, it got error.

You need to show more code.  What exactly are you passing to Post()?  Are
you resetting the Request data each time the loop re-iterates?


Gambit
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