🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TIdHTTP

#2299
From: treehousetim
Date: Mon, 12 Jun 2006 19:51
18 lines
1625 bytes
Hello,

I'm using Indy 9.

I'm trying to do an HTTP post to a server running apache with php.
I'm attempting to upload a jpeg image, but every time I try the sample
code I've found all over the internet, I get 406 errors from Indy, and
my request never goes through to the server.

Does anyone have sample code showing how to post a file upload using
TIdHTTP to a php script?

I'm quite versed in php - this really isn't a question about php file
uploads, just how to get it to the php script in the first place.

Thanks!

- Tim
Technical Details
Message-ID: <1150141917.488057.226750@g10g2000cwb.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!g10g2000cwb.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ddbce70aea28169c,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!g10g2000cwb.googlegroups.com!not-for-mail
From: treehousetim@gmail.com
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TIdHTTP
Date: 12 Jun 2006 12:51:57 -0700
Organization: http://groups.google.com
Lines: 19
Message-ID: <1150141917.488057.226750@g10g2000cwb.googlegroups.com>
NNTP-Posting-Host: 70.252.174.162
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1150141923 22966 127.0.0.1 (12 Jun 2006 19:52:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 12 Jun 2006 19:52:03 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: g10g2000cwb.googlegroups.com; posting-host=70.252.174.162;
   posting-account=S8s4tw0AAADI9BYK1Xz6MiVZklwpQ8Gw