Hello Roland, The file is the JPEG file. I can manually upload that image from the site ( www.apartmentfrog.com).
It's a really good documentation! I used a tool called TCPMON to catch the request header, and the following is what I got: POST /index.cfm?fuseaction=landlords.ListingValidate HTTP/1.1 User-Agent: Jakarta Commons-HttpClient/3.0.1 Host: localhost Cookie: $Version=0; CFID=1106460; $Path=/ Cookie: $Version=0; CFTOKEN=37b1d13db38db2f-7E3DE0AA-E33F-E5EF-4CC1D84DB2A7521D; $Path=/ Cookie: $Version=0; JSESSIONID=c830b371add8311a6e31; $Path=/ Content-Length: 11262 Content-Type: multipart/form-data; boundary=oAGaxHAa4P7Wm82FQVRHbgpK-xPv4qSeW3jt9k26 --oAGaxHAa4P7Wm82FQVRHbgpK-xPv4qSeW3jt9k26 Content-Disposition: form-data; name="photocaption" Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit --oAGaxHAa4P7Wm82FQVRHbgpK-xPv4qSeW3jt9k26 Content-Disposition: form-data; name="photofile"; filename="love.jpg" Content-Type: image/jpeg; charset=ISO-8859-1 Content-Transfer-Encoding: binary ........... some binary code here --oAGaxHAa4P7Wm82FQVRHbgpK-xPv4qSeW3jt9k26 Content-Disposition: form-data; name="PHOTODATA" Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit --oAGaxHAa4P7Wm82FQVRHbgpK-xPv4qSeW3jt9k26 Content-Disposition: form-data; name="TEMPAFID" Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit --oAGaxHAa4P7Wm82FQVRHbgpK-xPv4qSeW3jt9k26-- Thanks, Marshall On 12/13/06, Roland Weber <[EMAIL PROTECTED]> wrote:
Hello Marshall, > I thought the name for the file part should be match with the name of file > input type in the HTML form. Hmm, it probably should. I assume the file you are uploading is actually a JPEG file. Please try the instructions in our Client HTTP Programming Primer for analyzing HTML forms and, if necessary, sniffing the request generated by a browser: http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
