Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A462B184BD for ; Mon, 14 Mar 2016 13:25:20 +0000 (UTC) Received: (qmail 55601 invoked by uid 500); 14 Mar 2016 13:25:20 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 55557 invoked by uid 500); 14 Mar 2016 13:25:20 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 55545 invoked by uid 99); 14 Mar 2016 13:25:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2016 13:25:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B0B811A0CA2 for ; Mon, 14 Mar 2016 13:25:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=bosoconsulting-it.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 7_6QBj0enqZd for ; Mon, 14 Mar 2016 13:25:17 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id BCB9F5F5CE for ; Mon, 14 Mar 2016 13:25:16 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id oe12so1702612lbc.0 for ; Mon, 14 Mar 2016 06:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bosoconsulting-it.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=8QutyR6avXp7NktENAmTOW1vUktpVIpe6wnprNGOncY=; b=wqWgGhPzo9zg1dLuzbzK0ICmnIQ1yIpzwS7f+9SAD49/4sV9WNMSPloscVaImruzHF XluiQoCpv9fmrr1KOubJXK1MIWPUrxsWWxbx74Xvy7pH6caSDWNPr6JPZtrgCAmIJq3p 19B4L0UjNlRGfy5iKfNCoj9om9gsl5KP93lWTLi1JMnI6xzc+3QeOKKvw6V5Tk6ADCH6 2WvJ5f8qjOn3vfVTtdV+8QrGL9sn7KPUkT36S2w/pvtYPqurCyt+cHrTUHKKH0uqWGis QOZ8qRSnOEIAxvcw+baYozCE4X07VOJCdVhLenKhccTMrSecMp0kEoXthM03L4DH2Zg8 orRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=8QutyR6avXp7NktENAmTOW1vUktpVIpe6wnprNGOncY=; b=CATcTE++DjtjSur/61bDFFeLVtQf0J0jRvqw1Q4mGFNtAQsuGU+XHy/2XXkt6SNoA0 Il/MXzsOImDqGAhsPw7wYeWlwMNfYgNmykzpAAVVBFK4Jy6mBOrjE7xh3sUDL3bTnk+/ 9NE/WUNKSoDu1gzrm/69ix3NH5JNXM8F7sLQUqACP1YsefQb3chy0hiJr7Dquu1aHYc9 JbP6db8ye6y5aV4MAbDoXb5p+IbcDWqZTt/FRiGnlRmRz5PtLZcEehPEBv/fyJV2P4yv WZU1mqNgtEzp2nFwy5b8QpiuNSFpewdjii2NSAVKxVduMQyVcGgoE2REZA/UENE/Ed7A o75Q== X-Gm-Message-State: AD7BkJJFlpv0tKdiIb3AtDR4sUqY7oA0oIp4o44KRAryYGZHrXVl6lLnrBkawTrq4+havgdQWbZv+zkhkXZleA== MIME-Version: 1.0 X-Received: by 10.25.82.213 with SMTP id g204mr8118142lfb.142.1457961916135; Mon, 14 Mar 2016 06:25:16 -0700 (PDT) Received: by 10.25.16.84 with HTTP; Mon, 14 Mar 2016 06:25:16 -0700 (PDT) Received: by 10.25.16.84 with HTTP; Mon, 14 Mar 2016 06:25:16 -0700 (PDT) In-Reply-To: <56E6B481.2030805@gmail.com> References: <56E6B481.2030805@gmail.com> Date: Mon, 14 Mar 2016 14:25:16 +0100 Message-ID: Subject: Re: ASP.NET Login Problems From: Sergio Boso To: JMeter Users List Content-Type: multipart/alternative; boundary=001a1141d71e1b919a052e0236bd --001a1141d71e1b919a052e0236bd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi the reg exp is correct. You have to deal with URLencoding of data. There is a flag to enforce encoding while postg the data. Regards Sergio Boso Il 14/Mar/2016 13:54, "Frank Cazabon" ha scritto: > Hi, > > I am using jmeter for the first time. I am trying to test an ASP.NET web > site which has a log in process but the login is failing. I have followe= d > the YouTube videos I have found on how to read the viewstate, etc from th= e > first response. > > I have set a Regular Expression Extractor like this: > > Ref Name: viewstate > Regular Expression: id=3D"__VIEWSTATE" value=3D"(.+?)" /> > Template: $1$ > > This apparently sets my viewstate variable to this: > __VIEWSTATE=3D%2FwEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zd= EJhY2tLZXlfXxYCBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHhSb3VuZFBhbmVsMQUp= Y3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv02mMpEvM3h4JrOXma9= O+ibYCrtMlDcXO9rZXOw5EQ%3D%3D > > The actual viewstate in the response data from the first request on the > web site is this: > > > value=3D"/wEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tL= ZXlfXxYCBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHhSb3VuZFBhbmVsMQUpY3RsMDA= kQ29udGVudFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv02mMpEvM3h4JrOXma9O+ibYCr= tMlDcXO9rZXOw5EQ=3D=3D" > > The Post data on my login request is this: > > POST data: > > __EVENTVALIDATION=3D%2FwEdAARsMasKlSFEobllKbv2sSBzNkBWguBA4UP71lsiJzRdRDH= hGgN8+b0NXIwV57LBLpP2hHJlkpzwe0+KH%2FI%2Fh8UVyNcqsV%2FqpyHlFfUhxtyPR3wDhwUV= JvkJEE6lRhD+bUQ%3D&__VIEWSTATE=3D%2FwEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJv= bHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHh= Sb3VuZFBhbmVsMQUpY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv0= 2mMpEvM3h4JrOXma9O+ibYCrtMlDcXO9rZXOw5EQ%3D%3D&__VIEWSTATEGENERATOR=3DC2E..= .. > > The Response data for the login request has this error: > > The state information is invalid for this page and might be corrupted. > > [ViewStateException: Invalid viewstate. > Client IP: ***.***.***.*** > Port: ***** > Referer: > Path: /Login.aspx > User-Agent: Apache-HttpClient/4.2.6 (java 1.5) > ViewState: > /wEPDwULLTE3MDEwNDYzMDVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYCB= SljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJEFTUHhSb3VuZFBhbmVsMQUpY3RsMDAkQ29udGVu= dFBsYWNlSG9sZGVyMSRBU1B4Um91bmRQYW5lbDPxv02mMpEvM3h4JrOXma9O > ibYCrtMlDcXO9rZXOw5EQ=3D=3D] > > Can anyone spot what I am doing wrong? > > > -- > > Frank. > > Frank Cazabon > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > > --001a1141d71e1b919a052e0236bd--