java -cp %CLASSPATH% net.grinder.TCPProxy -console -http > grinder.py (windows)
was doing and the responses it was receiving. it was not the generated
> Hi,
>
> Im using TCPPRoxy -httpproxy <proxy address> <port>.. I am getting a total html script with Javascript included.. if im wrong please help me..
>
>
> Thanks in advance,
>
> V M Sandhya Sruthi
>
> -----Original Message-----
> From:
grinder-use-bounces@... [mailto:
grinder-use-bounces@...] On Behalf Of Calum Fitzgerald
> Sent: Thursday, June 26, 2008 5:24 PM
> To: grinder-use
> Subject: Re: [Grinder-use] regarding http script playback
>
> Dude that is a log file and not a script and thus the problem that you
> get when trying to run it. the script generated by the proxy will look
> a lot different.
>
> what is the command that you are using to start the proxy?
>
> have you read the documentation here
>
http://grinder.sourceforge.net/g3/getting-started.html#howtostart ?
>
> Cheers
> Cal
>
> 2008/6/26 Vithala_Sruthi <
Vithala_Sruthi@...>:
>> Hi,
>> The error I got shows a syntax error in the starting of the script which is generated through TCPProxy.
>>
>> The error is:
>> 6/26/08 4:54:33 PM (agent): worker ss started
>> 6/26/08 4:54:34 PM (process ss): Error running worker process (Synta
>> xError: ('invalid syntax', ('D:\\mygrinder\\irctc.py', 27, 34, 'GET /en-US/firef
>> ox/headlines.xml HTTP/1.1'))
>> (no code object) at line 0)
>>
>> My script file is:
>> --- localhost:8001->en-us.fxfeeds.mozilla.com:80 opened --
>> --- en-us.fxfeeds.mozilla.com:80->localhost: opened --
>> ------ localhost:19174->en-us.fxfeeds.mozilla.com:80 ------
>> GET /en-US/firefox/headlines.xml HTTP/1.1
>> Host: en-us.fxfeeds.mozilla.com
>> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
>> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>> Accept-Language: en-us,en;q=0.5
>> Accept-Encoding: gzip,deflate
>> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> Keep-Alive: 300
>> Proxy-Connection: keep-alive
>> X-Moz: livebookmarks
>> Cache-Control: max-age=0
>>
>>
>> --- localhost:19176->eee.irctc.co.in:80 opened --
>> ------ localhost:19176->eee.irctc.co.in:80 ------
>> GET / HTTP/1.1
>> Host: eee.irctc.co.in
>> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
>> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>> Accept-Language: en-us,en;q=0.5
>> Accept-Encoding: gzip,deflate
>> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> Keep-Alive: 300
>> Proxy-Connection: keep-alive
>>
>>
>> --- eee.irctc.co.in:80->localhost:19176 opened --
>> ------ en-us.fxfeeds.mozilla.com:80->localhost:19174 ------
>> HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
>> Via: 1.1 VCCPROXY001
>> Proxy-Authenticate: Negotiate
>> Proxy-Authenticate: Kerberos
>> Proxy-Authenticate: NTLM
>> Connection: Keep-Alive
>> Proxy-Connection: Keep-Alive
>> Pragma: no-cache
>> Cache-Control: no-cache
>> Content-Type: text/html
>> Content-Length: 4118
>>
>>
>>
>>
>> Thanks & Regards,
>>
>> V M Sandhya Sruthi
>>
>>
>> -----Original Message-----
>> From:
grinder-use-bounces@... [mailto:
grinder-use-bounces@...] On Behalf Of Calum Fitzgerald
>> Sent: Thursday, June 26, 2008 2:33 PM
>> To: grinder-use
>> Subject: Re: [Grinder-use] regarding http script playback
>>
>> goto line 13 in your test.py file.
>>
>> Check the indenting and also the validity of the statement. Do you
>> mean to have localhost in the script...this looks like the proxy host
>> and port you used to record the script. this could be an error if it
>> is still there when you playback. If possible attach the offending
>> script next time.
>>
>> the second error can be ignored IMO, it is to do with caching of
>> packages and is not important to the running of the script.
>>
>> Cheers
>> Cal
>>
>> 2008/6/26 Vithala_Sruthi <
Vithala_Sruthi@...>:
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> I have tried to record a web application
http://irctc.co.in .but I am
>>> getting an error which says
>>>
>>>
>>>
>>> 1. Error running worker process (SysntaxError: ('invalid
>>> syntax',('D:\\WorkGrinder\\test.py',13,1,'---
>>> localhost:1957-)www.irctc.co.in:80 opened--')).
>>>
>>> 2. *sys-package-mgr*: can't create package cache dir,
>>> 'D:\grinder\lib\jython.jar\cachedir\packages'
>>>
>>>
>>>
>>> Can anyone suggest me how to continue.
>>>
>>>
>>>
>>>
>>>
>>> Thanks & Regards,
>>>
>>>
>>>
>>> V M Sandhya Sruthi
>>>
>>>
>>>
>>> ________________________________
>>> DISCLAIMER:
>>> This email (including any attachments) is intended for the sole use of the
>>> intended recipient/s and may contain material that is CONFIDENTIAL AND
>>> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
>>> distribution or forwarding of any or all of the contents in this message is
>>> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
>>> the sender by email and delete all copies; your cooperation in this regard
>>> is appreciated.
>>>
>>> -------------------------------------------------------------------------
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>>
http://sourceforge.net/services/buy/index.php>>> _______________________________________________
>>> grinder-use mailing list
>>>
grinder-use@...
>>>
https://lists.sourceforge.net/lists/listinfo/grinder-use>>>
>>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>>
http://sourceforge.net/services/buy/index.php>> _______________________________________________
>> grinder-use mailing list
>>
grinder-use@...
>>
https://lists.sourceforge.net/lists/listinfo/grinder-use>>
>>
>> DISCLAIMER:
>> This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>>
http://sourceforge.net/services/buy/index.php>> _______________________________________________
>> grinder-use mailing list
>>
grinder-use@...
>>
https://lists.sourceforge.net/lists/listinfo/grinder-use>>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
http://sourceforge.net/services/buy/index.php> _______________________________________________
> grinder-use mailing list
>
grinder-use@...
>
https://lists.sourceforge.net/lists/listinfo/grinder-use>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
http://sourceforge.net/services/buy/index.php> _______________________________________________
> grinder-use mailing list
>
grinder-use@...
>
https://lists.sourceforge.net/lists/listinfo/grinder-use>