Hi All
I am a peoplesoft developer and I dont understand JSP too well . I have following two questions about the code below .
1) Are we using a POST call to
https://SomeUrl/ssoreq.asp (not a GET
request) ?
2) Are we assigning the content-length and content-type header
variables prior to executing the POST call ? ...
Quick responses would be highly appreciated . Thanks
2) Are we assigning the content-length and content-type header
variables prior to executing the POST call ? ...
You are not executing a call. You need to open an input stream to get a response. Are you trying to stream content to the remote resource or are you trying to obtain content from it ? Look at the javadoc for URLConnection
A URL connection can be used for input and/or output. Set the DoInput flag to true if you intend to use the URL connection for input, false if not. The default is true.
Quick responses would be highly appreciated
Asking for a quick response usually puts people off. If you can elaborate on your requirement we can help you get a better solution. A JSP is not meant to contain code. It is a view, nothing more.