Forums Register Login

Http Header Passing!

+Pie Number of slices to send: Send
Hey everyone,

I am trying to do a little experiment with HTTP Headers. I would like to
add a custom HTTP header in a JSP page( say post.jsp) and then use POST method to pass these headers into another JSP page ( say test.jsp).
Does it sound like a lofty dream or can it really be done? Any suggestion would be highly appriciable.

Thank you in Advance

A R.K
+Pie Number of slices to send: Send
Look at the JavaDocs for URLConnection and HttpURLConnection in the java.net package. There you will find methods for examining and setting request headers.
You must use the setRequestMethod("POST") in HttpURLConnection in order to do a POST as the default is GET.
Bill
Do not set lab on fire. Or this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1352 times.
Similar Threads
showing values in table on basis of column header
Setting Refresh header not refreshing to specified URL
Passing HTTP Header!
How to set 'If-Modified-Since ' header
what is a HTTP header?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:10:32.