POST request as image url



Hi,

I have an image that comes as a answer to an POST request to a host2. I need
to use that image within in jsp, served from host1.

We use today some javascript to make an form in a page, and then invoking
form.submit():

<form name="viewer" action="http://host2/servlet"; >
<input type="hidden" name="Id" value="<%=Id%>" >
</form>
<script language="javascript">
document.viewer.submit();
</script>



But this replaces the whole page with the image. I need only the portion
within an
<img src="${somehow the form request invoked}"/>


I though about using a frame containing that the form before. but this is an
ugly workaround.
I cannot work with <img src="http://host2?input1=value&....";> since this is
GET request and my image is only returned on POST requests.

any ideas?



.



Relevant Pages

  • Re: FIle Upload and Form submissions
    ... The temp files that are uploaded in your post request should be ... automatically deleted when your script ends. ... Prev by Date: ...
    (php.general)
  • Re: Problem posting with LWP::UserAgent
    ... > Am I missing something here? ... If it's "302 Found", your post request is redirected, which is not default ... does the trick (been bitten by it some time ago, ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Re: Can you _POST variables in php without using a

    ... allow to connect to your web server with a POST request. ... would use sessions. ... Prev by Date: ...
    (comp.lang.php)
  • Re: chemistry sites
    ... Here you can find books, Post request for journal articles and much ... Prev by Date: ...
    (sci.chem.analytical)