I struggle again with curl and html parsing. The VIEWSTATE variables are sometimes hard to deal with. Strange enough, php and curl adds +%0A to the end of an urlencoded variable. And as you might guess this poisons the VIEWSTATE mechanism. A workaround that I used is to trim +%0A at the end of urlencoded strings by substr function.
I was trying to use sub (or gsub) function in awk to delete an \r from the end of line. For that purpose I used dum=sub(/\r/,"",$0) and thought that the variable "dum" will be filled with the changed value of $0. But I realised that sub function only make the change and returns 0,1 accordingly. So I wrote like this sub(/r/,"") ; x=$0;
Yorumlar