Jump to content

PHP that deals with a post but not from a form


nicko

Recommended Posts

Hi, I need to write a bit of code that is probably really simple.

I realise that the way to POST data for php to process it is using a HTML form. In particular I want to upload a file, this is easy with a form. But how do I do it if what I'm posting is simply a header with the content type defined and then the body contains the file.

Hope someone can help,

Cheers
Well basically my problem is that I need to send a file, lets say an image from a mobile phone application to a web server. The phone programming language is Symbian C++, they provide an API for HTML form immitation, but there is no 'file' type. So I figured I could just post the image as the body data and put the content type to image/* in the header.

So if I do it like this I need a script that extracts the body and saves it as an image on the web server.

Or do you know a better way around this. I need to use HTTP as the protocol.

Cheers
I would like to thank you for your excellence in customer service and support.
http://wizwebhost.com web hosting experts are terrific. I just wanted to let you know your work is greatly appreciated, and I look forward to doing more business with you in the near future.

Henry Cooper
Web Designer

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.