steve_111974
Jul 24, 2008Nimbostratus
rewrite a character with HTTP POST data
Hi,
Our application is having a problem recognizing the "&" within a POST sent by the client.
How do I write an irule which parses the POST data that contains the "&" sign and rewrite it to something else like "and", then pass it to the application server. I might need help on rewriting the "and" back to "&" for the response back to the client.
Here's a sample of the data being sent by a client:
POST /app/DentegraPortal/TransEDI HTTP/1.1
Content-Length: 514
Content-Type: text/plain; charset=UTF-8
Host: 192.168.130.129:8080
Connection: Keep-Alive
User-Agent: Jakarta-HttpComponents/1.1
ISA*00* *00* *ZZ*DDPA *ZZ*NY *080724*1127*U*00401*000000001*0*P*:~GS*HS*DDPA*NY*20080724*1127*1*X*004010X092~ST*270*0001~BHT*0022*13*DDPA-deprod2-1216916839069-0*20080724*1127~HL*1**20*1~NM1*PR*2*DELTA DENTAL NY*****PI*NY~HL*2*1*21*1~NM1*1P*2*MONTERUBIO & HERBOSA ORAL M*****FI*431554961~HL*3*2*22*0~NM1*IL*1*CONWAY*NATSUKO****MI*489846656~DMG*D8*19560225~EQ*30~SE*11*0001~GE*1*1~IEA*1*000000001~
Please help!