mIRC Home    About    Download    Register    News    Help

Print Thread
I need help #180093 03/07/07 07:15 PM
Joined: Jul 2007
Posts: 6
B
besi Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jul 2007
Posts: 6
i want to write a script which gets some information on eurototo.eurolloto.com.i know how to do that in a normal web page but in this page u have to click an and that get the information i want.i dont know how to do this with socks.is this possible.please visit the page eurototo.eurolloto.com to fully understand my problem becouse i dont know if i explaind it wright.when u visit the page u click in a row of the first grid and after that another detailed gird apears.please help me

Re: I need help [Re: besi] #180150 04/07/07 09:07 PM
Joined: Jul 2007
Posts: 6
B
besi Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jul 2007
Posts: 6
i wrote this script for my self:
alias eurolloto {
sockclose eurototo
window @eurolloto
sockopen eurototo eurototo.eurolloto.com 80
}

on *:sockopen:eurototo:{


var %string = __EVENTTARGET=GridView1 $+ &__EVENTARGUMENT= $+ Select$0 $+ &__VIEWSTATE= $+ pVzsl++rHH2bG+DB+6X2XSAtucn8wF4UGyJ0T2CGTx7tacTVq8ud5E7yL2H0TUgBnmDcQaOtUv5eCITgNM0wRIMBuqWlgvTERmwCW9koEyqFuwOYYfw/1hFy6Z3meV4TvKkkmBLniJwqfFKU1hcbNTBj8oj2sfOpxE07LEbvs4N4VP7s+O1R2hkKSzBxvSdMTS/b5VOiJQCXYe5N7N8Dxu1WB94nM3tGeIW+Rh5KDVq2vDw0HUSNvtIOkaDFVo/aXSyQaFXJ1ECv7zdCmxe/Wa1rChtMotF8VdMRKiRgg7WT6kJtYDBnh3dfk3+c8v4tu3dq7JKEka8c14nEyRDSoNVyFoVeYStmFBOdmn8vkYKzKbCzqhdF3DvgwV00+Kjg3NAXrStvY7PtVPzc6eURC9fxCeq85VPjBMUZ2zvsA25DiW2/G1dt0CF6TXkw13TKg6WAz0KoK7jAYZTpXucAC4F9ZcyBLcWeUXYOgAKUtMosqbQhusiWyAUFlRQi6SMu28u9Z1pOx7l1p/aEHbYBwiiHbETlWI2k3zjCwZd1j1YsZWBb94xiv2lyelSNmXIckGEMziNDTftRoVrzPsO+Np20D+H0cOpDtBFt44aAr5Uyr4AyFGY5iDfiPcH8loYZgpzkYET8FNMQIb/rQHxq6oTLLu1u32aixdWSPx3YX1Rl5uk+n4AtO6UyIP9VxYS2/TLvXJy1UnCyuF5A9vL9jGMzMojkn8daGiwPs9QWE8LkG3G6fDQJGKvBqHBHio4ds5b8y9FHai5yRGzPqCm8z6Mvfp78z+QR8F4NcozqvO8tVH7+F8Sv3Zfa0JFFAlRlykzKB6FIVnKe/sEkYV3/p


sockwrite -n $sockname POST /Default.aspx HTTP/1.1
sockwrite -n $sockname Host: eurototo.eurolloto.com


sockwrite -n $sockname Content-Length: $len(%string)
sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
sockwrite -n $sockname Accept-Encoding: gzip

sockwrite -n $sockname $crlf %string
}


alias nohtml {
var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, )
return %x
}


on *:sockread:eurototo:{
if ($sockerr) {
echo -a Gabim ne lexim
halt
}
var %msgmarr
sockread %msgmarr
var %nohtmlmsg = $nohtml(%msgmarr)
aline @eurolloto %nohtmlmsg
write besi.txt %nohtmlmsg

}


and i get this result:


HTTP/1.1 500 Internal Server Error
Date: Wed, 04 Jul 2007 21:05:03 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 8872
The state information is invalid for this page and might be corrupted.
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
Server Error in '/' Application.
The state information is invalid for this page and might be corrupted.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:1. Add a "Debug=true" directive at the top of the file that generated the error. Example: <%@ Page Language="C#" Debug="true" %>or:2) Add the following section to the configuration file of your application:<configuration> <system.web> <compilation debug="true"/> </system.web></configuration> Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mod
e does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[FormatException: Invalid length for a Base-64 char array.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +140
[ViewStateException: Invalid viewstate.
Client IP: 217.24.248.126
Port: 10474
User-Agent:
ViewState: pVzsl rHH2bG DB 6X2XSAtucn8wF4UGyJ0T2CGTx7tacTVq8ud5E7yL2H0TUgBnmDcQaOtUv5eCITgNM0wRIMBuqWlgvTERmwCW9koEyqFuwOYYfw/1hFy6Z3meV4TvKkkmBLniJwqfFKU1hcbNTBj8oj2sfOpxE07LEbvs4N4VP7s O1R2hkKSzBxvSdMTS/b5VOiJQCXYe5N7N8Dxu1WB94nM3tGeIW Rh5KDVq2vDw0HUSNvtIOkaDFVo/aXSyQaFXJ1ECv7zdCmxe/Wa1rChtMotF8VdMRKiRgg7WT6kJtYDBnh3dfk3 c8v4tu3dq7JKEka8c14nEyRDSoNVyFoVeYStmFBOdmn8vkYKzKbCzqhdF3DvgwV00 Kjg3NAXrStvY7PtVPzc6eURC9fxCeq85VPjBMUZ2zvsA25DiW2/G1dt0CF6TXkw13TKg6WAz0KoK7jAYZTpXucAC4F9ZcyBLcWeUXYOgAKUtMosqbQhusiWyAUFlRQi6SMu28u9Z1pOx7l1p/aEHbYBwiiHbETlWI2k3zjCwZd1j1YsZWBb94xiv2lyelSNmXIckGEMziNDTftRoVrzPsO Np20D H0cOpDtBFt44aAr5Uyr4AyFGY5iDfiPcH8loYZgpzkYET8FNMQIb/rQHxq6oTLLu1u32aixdWSPx3YX1Rl5uk n4AtO6UyIP9VxYS2/TLvXJy1UnCyuF5A9vL9jGMzMojkn8daGiwPs9QWE8LkG3G6fDQJGKvBqHBHio4ds5b8y9FHai5yRGzPqCm8z6Mvfp78z QR8F4NcozqvO8tVH7 F8Sv3Zfa0JFFAlRlykzKB6FIVnKe/sEkYV3/
Referer:
Path: /Default.aspx]
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.HiddenFieldPageStatePersister.Load() +240
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Version Information:Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
[FormatException]: Invalid length for a Base-64 char array.
at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
[ViewStateException]: Invalid viewstate.
Client IP: 217.24.248.126
Port: 10474
User-Agent:
ViewState: pVzsl rHH2bG DB 6X2XSAtucn8wF4UGyJ0T2CGTx7tacTVq8ud5E7yL2H0TUgBnmDcQaOtUv5eCITgNM0wRIMBuqWlgvTERmwCW9koEyqFuwOYYfw/1hFy6Z3meV4TvKkkmBLniJwqfFKU1hcbNTBj8oj2sfOpxE07LEbvs4N4VP7s O1R2hkKSzBxvSdMTS/b5VOiJQCXYe5N7N8Dxu1WB94nM3tGeIW Rh5KDVq2vDw0HUSNvtIOkaDFVo/aXSyQaFXJ1ECv7zdCmxe/Wa1rChtMotF8VdMRKiRgg7WT6kJtYDBnh3dfk3 c8v4tu3dq7JKEka8c14nEyRDSoNVyFoVeYStmFBOdmn8vkYKzKbCzqhdF3DvgwV00 Kjg3NAXrStvY7PtVPzc6eURC9fxCeq85VPjBMUZ2zvsA25DiW2/G1dt0CF6TXkw13TKg6WAz0KoK7jAYZTpXucAC4F9ZcyBLcWeUXYOgAKUtMosqbQhusiWyAUFlRQi6SMu28u9Z1pOx7l1p/aEHbYBwiiHbETlWI2k3zjCwZd1j1YsZWBb94xiv2lyelSNmXIckGEMziNDTftRoVrzPsO Np20D H0cOpDtBFt44aAr5Uyr4AyFGY5iDfiPcH8loYZgpzkYET8FNMQIb/rQHxq6oTLLu1u32aixdWSPx3YX1Rl5uk n4AtO6UyIP9VxYS2/TLvXJy1UnCyuF5A9vL9jGMzMojkn8daGiwPs9QWE8LkG3G6fDQJGKvBqHBHio4ds5b8y9FHai5yRGzPqCm8z6Mvfp78z QR8F4NcozqvO8tVH7 F8Sv3Zfa0JFFAlRlykzKB6FIVnKe/sEkYV3/
Referer:
Path: /Default.aspx
[HttpException]: The state information is invalid for this page and might be corrupted.
at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


what should i do

Re: I need help [Re: besi] #180151 04/07/07 09:16 PM
Joined: Jul 2007
Posts: 6
B
besi Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jul 2007
Posts: 6
another thing please.is it possible to triger a click event with sockets becouse to viw detailes in the webpage i have to click a row.when i click it it runs a specific function in the webpage which shows the detailed information.can this click event be done with a sockwrite method


please answer me

Re: I need help [Re: besi] #180157 04/07/07 09:40 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
When someone has am answer for you, they will post it.

I could tell from your original post, just a little more than 26 hours ago, that what you were wanting was beyond my knowledge.

We are all volunteers here, and respond when we can, so you need to have patience.

Re: I need help [Re: besi] #180159 04/07/07 10:34 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
The error you receive (500 Internal Server Error, State Information is invalid) is caused by %string containing incorrect information. It appears to have been cut off prematurely.

mIRC has a line-length limit of around 950 characters, so you should use a different method of storing your %string. Try splitting it up into multiple %variables or using a &binvar (/help Binary Variables) instead.

Also note that such information can expire.

I'd also recommend replacing HTTP/1.1 with HTTP/1.0 and removing "Accept-Encoding: gzip". The former may split up data into chunks which can confuse parsing, whilst the latter will make the data unreadable (by humans, atleast).

Finally, please use [code] tags when posting code smile

Re: I need help [Re: Collective] #180193 05/07/07 01:16 PM
Joined: Jul 2007
Posts: 6
B
besi Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jul 2007
Posts: 6
ok.but can soccks trigger or call a function in a web page script.should i send the data urlencoded?.if u have time have alook at eurototo.eurolloto.com these days.