Forum Discussion

sohrab_304207's avatar
sohrab_304207
Icon for Nimbostratus rankNimbostratus
Dec 26, 2016

How to Rewrite VIEWSTATE in ASP PAGE in the Request Params

Hi, EveryBody

 

I was wondering how to change name of ASP Value Like VIEWSTATE to "CALLCODE" when sending HTTP Request to WEB SERVER , Because I change This Parameter (VIEWSTATE,EVENTTARGET,..) in the HTTP RESPONSE to "CALLCODE"???? Pls Hellp Me

 

Thanks Regard

 

How do It

 

I'm sorry I can not speak good English ;)

 

4 Replies

  • I am guessing you are looking for iRule assistance. Please, provide examples of URL that needs to be changed in order to provide a better answer.

     

  • Thanks my friend (Odaah) I want change ellement name of ASP like (__VIEWSTATE) to Custom name in the http request this is my http Request:

     

    Request URL:http://10.102.1.126/home.aspx Request Method:POST Status Code:200 OK Remote Address:10.102.1.126:80 Response Headers view source Cache-Control:private Content-Encoding:gzip Content-Length:845 Content-Type:text/html; charset=utf-8 Date:Tue, 27 Dec 2016 05:12:55 GMT Server:Microsoft-IIS/7.5 Vary:Accept-Encoding X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET Request Headers view source Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Encoding:gzip, deflate Accept-Language:en-US,en;q=0.8 Cache-Control:max-age=0 Connection:keep-alive Content-Length:392 Content-Type:application/x-www-form-urlencoded Cookie:sohrab=xdc1wsq3aekl2slllbip1rea Host:10.102.1.126 Origin:http://10.102.1.126 Referer:http://10.102.1.126/home.aspx Upgrade-Insecure-Requests:1 User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 Form Data view source view URL encoded __VIEWSTATE:ERA7yeGQCkc0lMvbcmBFuHbSb7UZTGA48BKODxQCeYhiZE5JT+NTN47er6J9hWBnPvG4WdENGZpG9t2EXwOVHSsb9TrWMsOSs3OMcraAubr57kQCLkvntP+9LeZmpjCQ3cDg14RpZR/rv3v2KDdRVMrkjVXUrjrXs1hezovsUgs= __VIEWSTATEGENERATOR:8D0E13E6 __EVENTVALIDATION:kZagBUBdNwVlYlb3NPRudqpnPRplWLqNs1EBu+ULgyAO95/CilErxP1aJ/YXj6in/RtfEDtYrYf2SJsvlf2MbpEPvTak+jFo40pUux0tGQT0fBOvhqlqBkrbCirHXlRq Button1:Send

     

     

    • Vijay_E's avatar
      Vijay_E
      Icon for Cirrus rankCirrus

      You want to change the "_VIEWSTATE" within the POST data to custom name - what custom name ?

       

      Have you looked into using Stream Profile ?