cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Sms.aspx redirects to login.aspx on form post (actionusesjavascript); help wanted

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 13 Aug 2007 23:27:59 +0200 (CEST)

On Mon, 13 Aug 2007, Ceriel Jacobs wrote:

> Also playing around with adding as much headers as possible, though no luck
> with that.

Look at this:

> 0002: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
> 0043: <html xmlns="http://www.w3.org/1999/xhtml">
> 0070: <head><title>
> 007f: .www.bel1601.nl
> 0090: </title><link href="App_Themes/Theme1601/CarrierSelect1601.css"
> 00d0: rel="stylesheet" type="text/css" /></head>
> 00fc: <body leftmargin="0" topmargin="0">
> 0121: <form name="aspnetForm" method="post" action="Login.aspx" id
> 0161: ="aspnetForm">
> 0171: <div>
> 0178: <input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="
> 01b8: " />
> 01be: <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" val
> 01fe: ue="" />
> 0208: <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT"
> 0248: value="" />
> 0256: <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="
> 0296: %%VIEWSTATE%%" />
> 0d34: </div>
> 0d3c:
> 0d3e: <script type="text/javascript">
> 0d5f: <!--
> 0d65: var theForm = document.forms['aspnetForm'];
> 0d92: if (!theForm) {
> 0da3: theForm = document.aspnetForm;
> 0dc7: }
> 0dca: function __doPostBack(eventTarget, eventArgument) {
> 0dff: if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
> 0e3e: theForm.__EVENTTARGET.value = eventTarget;
> 0e72: theForm.__EVENTARGUMENT.value = eventArgument;
> 0eaa: theForm.submit();
> 0ec5: }
> 0ecc: }
> 0ecf: // -->
> 0ed7: </script>
> 0ee2:
> 0ee4:
> 0ee6: <script src="/WebResource.axd?d=aH_Oa6Sk1XUrjgIuuE0C-Q2&amp;t=63
> 0f26: 3072331977350000" type="text/javascript"></script>
> 0f5a:
> 0f5c:
> 0f5e: <script src="/WebResource.axd?d=dwSOgKaWFut59sHBNvRiCg2&amp;t=63
> 0f9e: 3072331977350000" type="text/javascript"></script>

1) A form with only hidden fields == looks like made for getting submitted by
    javascript...

2) Lots of javascript.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-08-13