Hi Everyone, I am trying to make a web request to a remote server with specific POST request parameters (making a request in PHP). The server returns an image, which I have to write to the browser. I know I can use the WebRequest class to make the request, but can anyone suggest how I can do the latter? How can I get the image from the server and print it to the browser screen? Can I get a stream out of the response object? If anyone can help me or point me in the right direction, I would greatly appreciate it!! Thanks, and take care! AR
Use curl to get the file. Extremely easy if you use curl_setopt($ch, CURL_POSTFIELDS, $post_fields); (Think I remembered that correctly, and then set use post to yes. All basic. Then use header('Content-type: image/png)' if it's PNG, etc. and just echo the image. Not too hard, good luck. Dan