<div> </div>
<div class="gmail_quote">On Fri, Feb 12, 2010 at 3:13 PM, Chognkai Zhu <span dir="ltr"><<a href="mailto:czhu@cs.utah.edu">czhu@cs.utah.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>(post-impure-port<br> (string->url "<a href="http://xxxx/?redirect=%2F%3Fdnode%3DState" target="_blank">http://XXXX/?redirect=%2F%3Fdnode%3DState</a>")<br>
#"username=XXXX&password=XXXX"))<br><br>Where XXXX is either the host(url) or the username/password(in URL encoding). But it doesn't seems to work. The returned page is still the page with the form asking for username/password. What part did I miss? Could anyone who know these things please help? Many thanks.</blockquote>
<div> </div>
<div>
<div>It mostly looked right except for the redirect field. Depending on the server side it might not look for a post value from the query string.</div>
<div> </div>
<div>Try to put it into the bytes like:</div>
<div> </div>
<div>(post-impure-port (string->url "http://xxx...") #"redirect=%2f#3fdnode%3dState&username=xxx&password=...") </div>
<div> </div>
<div>And see if that helps,</div>
<div> </div>
<div>Cheers.</div>
<div>yc</div>
<div> </div>
<div> </div></div></div>