Ciao a tutti io ho il seguente form(che poi è il form della pagina di google per l'autenticazione). Vorrei sapere, a livello di protocollo http, quali sono i vari header che vengono generati e vengono passati con il metodo post al server quando l'utente clicca su "Accedi".
Grazie tante e a presto.
Codice PHP:<form id="gaia_loginform" action="https://www.google.com/accounts/ServiceLoginAuth?service=mail" method="post" onsubmit="return(gaia_onLoginSubmit());">
<div id="gaia_loginbox">
<table class="form-noindent" cellspacing="3" cellpadding="5" width="100%" border="0">
<tr>
<td valign="top" style="text-align:center" nowrap="nowrap"
bgcolor="#e8eefa">
<input type="hidden" name="ltmpl"
value="default">
<input type="hidden" name="ltmplcache"
value="2">
<div class="loginBox">
<table id="gaia_table" align="center" border="0" cellpadding="1" cellspacing="0">
<tr>
<td colspan="2" align="center">
<font size="-1">
Accedi a Gmail con il tuo
</font>
<table>
<tr>
<td valign="middle">
<font size="+0">[b]Account[/b]</font>
</td>
<td valign="top">
[img]google_transparent.gif[/img]
</img>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center">
</td>
</tr>
<tr>
<td nowrap="nowrap">
<div align="right">
<span class="gaia le lbl">
Nome utente:
</span>
</div>
</td>
<td>
<input type="hidden" name="continue" id="continue"
value="http://mail.google.com/mail/?ui=html&zy=l" />
<input type="hidden" name="service" id="service"
value="mail" />
<input type="hidden" name="rm" id="rm"
value="false" />
<input type="hidden" name="ltmpl" id="ltmpl"
value="default" />
<input type="hidden" name="hl" id="hl"
value="it" />
<input type="hidden" name="ltmpl" id="ltmpl"
value="default" />
<input type="hidden" name="scc" id="scc"
value="1" />
<input type="hidden"
name="GALX"
value="1dqtTCMnFe4" />
<input type="text" name="Email" id="Email"
size="18" value=""
class='gaia le val'
/>
</td>
</tr>
<tr>
<td></td>
<td align="left">
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap">
<span class="gaia le lbl">
Password:
</span>
</td>
<td>
<input type="password"
name="Passwd" id="Passwd"
size="18"
class="gaia le val"
/>
</td>
</tr>
<tr>
<td>
</td>
<td align="left">
</td>
</tr>
<tr>
<td align="right" valign="top">
<input type="checkbox" name="PersistentCookie" id="PersistentCookie"
value="yes"
checked='checked'
/>
<input type="hidden" name='rmShown' value="1" />
</td>
<td>
<label for="PersistentCookie" class="gaia le rem">
Resta connesso
</label>
</td>
</tr>
<tr>
<td>
</td>
<td align="left">
<input type="submit" class="gaia le button" name="signIn"
value="Accedi"
/>
</td>
</tr>
<tr id="ga-fprow">
<td colspan="2" height="33.0" class="gaia le fpwd"
align="center" valign="bottom">
<a href="http://mail.google.com/support/bin/answer.py?answer=46346&fpUrl=https%3A%2F%2Fwww.google.com%2Faccounts%2FForgotPasswd%3FfpOnly%3D1%26continue%3Dhttp%253A%252F%252Fmail.google.com%252Fmail%252F%253Fui%253Dhtml%2526zy%253Dl%26hl%3Dit%26service%3Dmail%26ltmpl%3Ddefault&fuUrl=https%3A%2F%2Fwww.google.com%2Faccounts%2FForgotPasswd%3FfuOnly%3D1%26continue%3Dhttp%253A%252F%252Fmail.google.com%252Fmail%252F%253Fui%253Dhtml%2526zy%253Dl%26hl%3Dit%26service%3Dmail%26ltmpl%3Ddefault&hl=it"
target=_top>
Non riesci ad accedere al tuo account?
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<input type="hidden" name="asts"
id="asts"
value="">
</form>

Rispondi quotando

