Board index » delphi » Post doesn't work with Indy, works with ICS
bgood
![]() Delphi Developer |
Fri, 19 Dec 2003 01:45:24 GMT
|
bgood
![]() Delphi Developer |
Fri, 19 Dec 2003 01:45:24 GMT
Post doesn't work with Indy, works with ICS
Newbie to Winsock
Delphi5 Win98SE Indy 8.x Using Indy httpclient.exe The response is the enty form, ie the post wasn't accepted. Using ICS Httptst.exe Any ideas? Thank you in advance. Rob Why don't you ever see the headline "Psychic Wins Lottery"? |
Michael Horn
![]() Delphi Developer |
Sat, 20 Dec 2003 22:41:23 GMT
Re:Post doesn't work with Indy, works with ICSHello procedure Post(URL: string; const Source: TStrings; HTTP.Post(URL, memoPostData1.Lines, ssResult); I was having some problems with post just a couple of In other words, I had a form with a page control and I fixed my problem by switching to "GET" but you may Good Luck On Sun, 1 Jul 2001 10:45:24 -0700, bgood Quote<nospam_rclaib...@hotmail.com> wrote: |
Doychin Bondzhe
![]() Delphi Developer |
Sun, 21 Dec 2003 01:38:42 GMT
Re:Post doesn't work with Indy, works with ICSThis is a small example of using post to send data to web server. There is two different ways to do this operation. Example 1: HTTP.Request.ContentType := 'multipart/form-data; try Params.Write(S[1], Length(S)); with HTTP do begin Example 2: try As you can see there is a difference in the way post stream is constructed In the second example the ContentType is ParamName=ParamValue&ParamName=ParamValue Note that the Pramaeters in the second form must be URL encoded. Where these two formats of post information are used? The first one is used when you have binary data to post and the second one -- Quote"bgood" <nospam_rclaib...@hotmail.com> wrote in message Quote> Newbie to Winsock |
1. FindNext after Post in a Query doesn't always work
2. 3rd POST: SSL Demo doesn't work
3. Post doesn't work - synchronization problem
4. generators, ibtable - Insert via SQL works , append/post doesn't
5. WORKING DIRECTORY: Doesn't work
6. Indy 8006b - POST still dosen't work :-(
7. indy client: IdTime doesn't work
8. Indy MailClient Demo doesn't work!?