baba_k
13 years agoOccasional Contributor
How to update the URL in request header through OnLoadReuest event handler
Hi...
Can anyone please let me know, how to update the URL in get request header through event handler.
I am able to retreive the (below specified) request header using onloadrequest.
I have to update the GET /xyz/abc.aspx HTTP/1.1
to GET /123/345.aspx HTTP/1.1
I do not want to save this in a txt file and replace.
PLease help on how to replace this and pass the updated value instead of old value in the request
Can anyone please let me know, how to update the URL in get request header through event handler.
I am able to retreive the (below specified) request header using onloadrequest.
I have to update the GET /xyz/abc.aspx HTTP/1.1
to GET /123/345.aspx HTTP/1.1
I do not want to save this in a txt file and replace.
PLease help on how to replace this and pass the updated value instead of old value in the request
Request Header:
GET /xyz/abc.aspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Cache-Control: no-cache
Connection: Keep-Alive
Cookie: ASP.NET_SessionId=fffbtg55l1b1a245cgnrlymb; HttpOnly; .ASPXAUTH=8432932D13AF6D34CDF4121E65F94E57B603A57582ACDC65C6D04DFA4E2670AA1311A365C67899B81A2C34C23B5C37E2FA9648FD992DE941C5D410B6715C10F2453FE079CB85FF792262D021ABC4BCE1D92C80BFEFE72B35E09B62A3F1E7AB48B5E1C4D330D79DF3ADC09D86599EA8B7F06BA16C68D9587674010E151F2367A3EBD179AA; HttpOnly; HttpOnly
Host: XYZ:80
Referer: http://xyz/
UA-CPU: x86
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)