Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages
Started by roger
Wed, 02 Feb 2005 20:17
posting image to php with bcb app
Author: roger
Date: Wed, 02 Feb 2005 20:17
Date: Wed, 02 Feb 2005 20:17
12 lines
1396 bytes
1396 bytes
Can anyone suggest what component or point me in the direction of an example to upload and image or data file to a php script using the POST command...i have tried using ICS but seem to have come to a dead end for help with it.. Is there something that thre browser does..that my app might not..as the browser works fine with the script. I am using the multipart/form-data type with boundaries set ok.. I couldn't post the captured packets for comparision here but it can be viewed at http://homepage.ntlworld.com/rogersmail/capture.txt
Re: posting image to php with bcb app
Author: roger
Date: Wed, 02 Feb 2005 20:46
Date: Wed, 02 Feb 2005 20:46
23 lines
1767 bytes
1767 bytes
P.S.. i need to do it without using such components as CPPWebrowser as well.. "roger" <rogersmail@ntlworld.com> wrote in message news:4201354f$1@newsgroups.borland.com... > Can anyone suggest what component or point me in the direction of an example > to upload and image or data file to a php script using the POST command...i > have tried using ICS but seem to have come to a dead end for help with it.. > > Is there something that thre browser does..that my app might not..as the > browser works fine with the script. > I am using the multipart/form-data type with boundaries set ok.. > > I couldn't post the captured packets for comparision here but it can be > viewed at > > http://homepage.ntlworld.com/rogersmail/capture.txt > > >
Re: posting image to php with bcb app
Author: Hans Galema
Date: Wed, 02 Feb 2005 21:29
Date: Wed, 02 Feb 2005 21:29
28 lines
1910 bytes
1910 bytes
roger wrote: > I couldn't post the captured packets for comparision here but it can be > viewed at > > http://homepage.ntlworld.com/rogersmail/capture.txt You could not attach them you mean ? But that page you could include in the body as well. Some guesses: The browser uses HTTP/1.1 while ICS used HTTP/1.0 Did you try with a txt instead of a img ? Apparently all is received if one can believe the sniffler. Did you check if the temporary file was created ? Did you write the script yourself ? So /home/... is your directory ? If you do not want to use TCppWebBrowser than there is TIdHTTP and the old TNMHTTP. The latter is discouraged to use. It can post but I never used it to upload a file. Dit you check if the data for the gif are the same with browser and ICS ? The checksum is different! Which version of php is used (see comment in script). Hans.
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