I'm trying to replicate a post in HTTPClient but am having some
issues. It seems that somehow netscape taks a value that is
lest than 1k in lenght and makes it much bigger. I see the
URLEncoded data in Netscape's post but can not figure out
how the other stuff is getting appended to the __VIEWSTATE
value.
This is the data of the form:
<input type="hidden" name="__EVENTTARGET" value />
<input type="hidden" name="__EVENTARGUMENT" value />
<input type="hidden" name="__VIEWSTATE"
value="dDwyMTQxMjc4NDIxO3Q8O2w8aTwxPjs+O2w8dDw7bDx pPDA+Oz47bDx0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjs+O2w8d Dw7bDxpPDE+Oz47bDx0PDtsPGk8Mj47aTwzPjtpPDk+O2k8MTI +Oz47bDx0PDtsPGk8MT47PjtsPHQ8O2w8aTwwPjs+O2w8dDx0P Ds7bDxpPDA+Oz4+Ozs+Oz4+Oz4+O3Q8O2w8aTwxPjs+O2w8dDw 7bDxpPDA+Oz47bDx0PHQ8OztsPGk8MD47Pj47Oz47Pj47Pj47d Dw7bDxpPDE+Oz47bDx0PDtsPGk8MD47PjtsPHQ8dDw7O2w8aTw wPjs+Pjs7Pjs+Pjs+Pjt0PDtsPGk8MT47PjtsPHQ8O2w8aTwwP js+O2w8dDx0PDs7bDxpPDA+Oz4+Ozs+Oz4+Oz4+Oz4+Oz4+Oz4 +Oz4+Oz4+Oz4+Oz5ZeStnfajPMQ9tQDyvFfTUkgUDJg=="
/>
<select name="t_web_lookup__profession_name"
id="t_web_lookup__profession_name"
onchange="__doPostBack('t_web_lookup__profession_n ame','')"
language="javascript">
<select name="t_web_lookup__license_type_name"
id="t_web_lookup__license_type_name">
<input name="t_web_lookup__first_name" type="text"
id="t_web_lookup__first_name" value maxlength="50" />
<input name="t_web_lookup__last_name" type="text"
id="t_web_lookup__last_name" value maxlength="250" />
<input name="t_web_lookup__license_no" type="text"
id="t_web_lookup__license_no" value maxlength="50" />
<select name="t_web_lookup__license_status_name"
id="t_web_lookup__license_status_name">
<input name="t_web_lookup__addr_county" type="text"
id="t_web_lookup__addr_county" value maxlength="50" />
<input name="t_web_lookup__addr_city" type="text"
id="t_web_lookup__addr_city" value maxlength="50" />
<select name="t_web_lookup__addr_state" id="t_web_lookup__addr_state">
<input name="t_web_lookup__addr_zipcode" type="text"
id="t_web_lookup__addr_zipcode" value maxlength="250" />
<input type="submit" name="sch_button" value="Search" id="sch_button" />
<input type="Reset" value="Clear" width="46" height="24">
Here is what I've captured by sniffing:
------------------------------------------------------------
POST /Search.aspx HTTP/1.1
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)
Referer:
http://192.168.2.8/s.html
Pragma: no-cache
Cache-control: no-cache
Accept: text/*, image/jpeg, image/png, image/*, */*
Accept-Encoding: x-gzip, x-deflate, gzip, deflate, identity
Accept-Charset: utf-8, utf-8;q=0.5, *;q=0.5
Accept-Language: en
Host: 192.168.2.8
Content-Type: application/x-www-form-urlencoded
Content-Length: 11702
__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=dDwyMT QxMjc4NDIxO3Q8O2w8aTwxPjs%2BO2w8dDw7bDxpPDA%2BOz47 bDx0PDtsPGk8MT47PjtsPHQ8O2
w8aTwxPjs%2BO2w8dDw7bDxpPDE%2BOz47bDx0PDtsPGk8Mj47 aTwzPjtpPDk%2BO2k8MTI%2BOz47bDx0PDtsPGk8MT47PjtsPH Q8O2w8aTwwPjs%2BO2w8dDx0P
Ds7bDxpPDA%2BOz4%2BOzs%2BOz4%2BOz4%2BO3Q8O2w8aTwxP js%2BO2w8dDw7bDxpPDA%2BOz47bDx0PHQ8cDxwPGw8RGF0YVR leHRGaWVsZDtEYXRhVmFsdWVG
aWVsZDs%2BO2w8bmFtZTtuYW1lOz4%2BOz47dDxpPDE2OT47QD wtLUFsbC0tO0FkbWluaXN0cmF0b3IgaW4gVHJhaW5pbmc7QWR2 YW5jZWQgUHJhY3RpY2UgLSBDT
k07QWR2YW5jZWQgUHJhY3RpY2UgLSBDTlMvUE1IO0FkdmFuY2V kIFByYWN0aWNlIC0g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