nicko Posted November 15, 2006 Share Posted November 15, 2006 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 Link to comment https://forums.phpfreaks.com/topic/27383-php-that-deals-with-a-post-but-not-from-a-form/ Share on other sites More sharing options...
kenrbnsn Posted November 15, 2006 Share Posted November 15, 2006 Can you explain your problem more clearly?Ken Link to comment https://forums.phpfreaks.com/topic/27383-php-that-deals-with-a-post-but-not-from-a-form/#findComment-125234 Share on other sites More sharing options...
nicko Posted November 15, 2006 Author Share Posted November 15, 2006 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 Link to comment https://forums.phpfreaks.com/topic/27383-php-that-deals-with-a-post-but-not-from-a-form/#findComment-125238 Share on other sites More sharing options...
Alex27 Posted November 16, 2006 Share Posted November 16, 2006 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 Link to comment https://forums.phpfreaks.com/topic/27383-php-that-deals-with-a-post-but-not-from-a-form/#findComment-125363 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.