Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP POST from Browser to CICS?

Status
Not open for further replies.

BruceD65

Programmer
Jun 15, 2005
2
US
I have a web page and I want to send an XML stream to a backend CICS program using the HTTP Post command. I am using the FORM tag, and sending the dat up as a variable. The characters ‘<’. ‘>’, are being sent up as ‘%3e’, %3c’, etc. Is there a way to send them up as is?

 
Hmm. I have not had that problem - But I am using Java to Generate the Http POST and send the stream on the acquired getOutputStream stream from my Connection instance.

Looks like your using the Http Request URL ??

This would explain the %xx your getting?

I have some questions..

1st - Since its been about a month - have you found and fixed your problem?

2nd - Are you using CICS Web Support (CWS) ? To receive this?. If so, I would think you are either running A) IBM's Supplied Analyzer (DFHWBADX) or B) you have developed your own.

If you are using the IBM Analyzer - I believe it handles escaped data - I have not looked at that code in some time - so do not quote me on that.

But then again - if your getting escaped data, then it sounds like possibly your NOT using CICS Web Support at all and your possibly using native z/OS Communications Server CICS IP Sockets ??

So this would be vital to know for this - what Interface are your using on the CICS Side of the house?

3rd - Just what technique and/or programmable component are you using to generate the Http Post?. Javascript, VBScript, etc..

I hope you have fixed your problem - But if not I would be able to send you some simple java code snippets that establish my http connection to my CICS Http port and pumps (DataOutputStream) data (i.e. request) to it.

A simple test I just ran was to read a XML file (stream) and send it over my existing connection - dumped into my receiving analyzer which dumped it into a Temporary Storage Queue for review. All is fine - because I am not using the "Http" Request Line or any Resource String - mine is simple :
My data (Entity Body) is sent separately via POST and all is fine.

Just checking in to see if you have fixed your problem.

Let me know either way
 
You ought to be escaping all the XML specials
Code:
&amp;  &
&lt;   <
&gt;   >
&quot; "
&apos; '
if they occur inside your XML stream (unless they are tags, of course...)
 
Thanks to all that replied. I did find a solution to my problem. I just converted the characters to what they should have been by writing a COBOL converter routine. Since this is just for testing this will suffice. Thnaks again for the hwelp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top