🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1777

Re: Upload a file using PHP and http->Post ?

#1777
From: Remy Lebeau (TeamB)
Date: Wed, 18 Oct 2006 06:21
20 lines
1620 bytes
"Nicholas Wilson" <nicholasjohnwilson@gmail.com> wrote in message
news:4535c1b4@newsgroups.borland.com...

>  there  is much code example to post a file using the http->Post option
> and the MultiPartFormDataStream. this seems to use either ASP or
> isapi extensions. is there some way to do the same with PHP and apache?

"multipart/form-data" uploads work the same in PHP as well.  It is a
standard HTTP mechanism.

> I can upload using a web page, but I cant do the same with the indy
component.

Then you are likely not using it correctly.  Please show your actual code.
TIdMultiPartFormDataStream is specifically designed to mimic what a web form
submits to the server.


Gambit
Technical Details
Message-ID: <4535cae8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4535c1b4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3eee350dd19e6632
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4535c1b4@newsgroups.borland.com>
Subject: Re: Upload a file using PHP and http->Post ?
Date: Tue, 17 Oct 2006 23:21:24 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <4535cae8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1161153256 69.169.4.232 (17 Oct 2006 23:34:16 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail