Different reactions from curb and curl

34 views
Skip to first unread message

hja...@gmail.com

unread,
Oct 22, 2009, 5:23:09 PM10/22/09
to Curb - Ruby libcurl Bindings
I am getting a different response from curb and curl... Anyone know
why?

Here is the response from curb..


* About to connect() to ssol.columbia.edu port 443 (#0)
* Trying 128.59.213.68... * Connected to ssol.columbia.edu
(128.59.213.68) port 443 (#0)
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US, ST=New York, L=New York City, O=Columbia
University, OU=Information Technology, CN=ssol.columbia.edu
* start date: 2009-06-05 12:39:34 GMT
* expire date: 2010-07-07 08:15:40 GMT
* common name: ssol.columbia.edu (matched)
* issuer: C=US, O=Equifax, OU=Equifax Secure Certificate Authority
* SSL certificate verify ok.
> GET / HTTP/1.1
Host: ssol.columbia.edu
Accept: */*

< HTTP/1.1 200 OK
< Date: Thu, 22 Oct 2009 20:52:25 GMT
< Server: IBM_HTTP_SERVER/1.3.26.1 Apache/1.3.26 (Unix)
< Transfer-Encoding: chunked
< Content-Type: text/plain
<
* Expire cleared
* Connection #0 to host ssol.columbia.edu left intact

But here is the curl response..

-MacBook-Pro:~ $ curl https://ssol.columbia.edu
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- META_REDIRECT -->
<base href="https://ssol.columbia.edu:443/ssol/">
<title>Columbia Student Services Online - Log in</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="Thu, 10 Aug 2006 06:52:10 GMT">
<script language=javascript>




function changeScripting(release)
{
var js_version = "1";
var js_release = release;


self.focus();
self.name = "Parent";

for(i=0; document.forms[i] != null; i++)
{
for(j=0; document.forms[i].elements[j] != null; j++)
{
if(document.forms[i].elements[j].name == "jsenabled")
{
document.forms[i].elements[j].value = "true";
}

if(document.forms[i].elements[j].name == "jsversion")
{
document.forms[i].elements[j].value = js_version;
}

if(document.forms[i].elements[j].name == "jsrelease")
{
document.forms[i].elements[j].value = js_release;
}
}
}

for(i=0; document.links[i] != null; i++)
{

if(document.links[i].search != null)
{
document.links[i].href =
replaceSubstring(document.links[i].href,
"jsenabled=false", "jsenabled=true");
document.links[i].href =
replaceSubstring(document.links[i].href,
"jsversion=0", "jsversion=" + js_version);
document.links[i].href =
replaceSubstring(document.links[i].href,
"jsrelease=0", "jsrelease=" + js_release);
}
}

return 1;
}


function substring(str, start, length)
{
var ret = "";
for(var i=0; i < length; i++)
{
ret += str.charAt(i+start);
}
return(ret);
}



function replaceSubstring(str, str_target, str_replace)
{
var startPos = -1;


if(str.length != 0)
{
var startPos = str.indexOf(str_target);
if(startPos != -1)
{
str = substring(str, 0, startPos) +
str_replace +
substring(str, startPos + str_target.length, str.length);
}

}

return str
}
</script>
<link rel="Shortcut Icon" href="../common/favicon.ico" type="image/x-
icon">
<link rel=StyleSheet href="../common/S2Server.css" type="text/css">
</head>
<body><table id="MainFrame" cellspacing=0 cellpadding=3
border=0><colgroup valign=top><col width=144><col><col width=175></
colgroup><tr><td colspan=3 id="Header"><div id="TopMenu"><span><a
href="/?s%.5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.
5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fcode=link%.5Fcu&tran%.5B1%.5D%.5Ftran%.5Fname=shrdr&tran%.
5B1%.5D%.5Foutput%.5Ftype=html%.5Funident">CU Home</a>&nbsp;&nbsp;</
span></div>
<div id="Banner"><div id="Logo"></div><h2 id="AppName">Student
Services Online</h2></div><h1 id="TranName">Log in</h1></td></tr>
<tr><td id="SideMenu" valign=top width=155><ul><li><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=none&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Ftran%.5Fname=chlp&tran%.5B1%.5D%.5Foutput%.5Ftype=html%.
5Funident">Help</a></li>
<li><a href="/?s%.5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.
5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Ftran%.5Fname=sinb&tran%.5B1%.5D%.5Foutput%.5Ftype=html%.
5Funident">Comments</a></li>
<li><a href="/?s%.5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.
5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Ftran%.5Fname=scel&tran%.5B1%.5D%.5Foutput%.5Ftype=html%.
5Funident">Exam List</a></li>
</ul></td>
<td id="Content" valign=top align=left><form
action="/"
enctype="application/x-www-form-url-encoded"
method="POST"
name="form0">
<input
type="hidden"
name="s_id"
value="3ad896fc20bf70e455dd3">
<input
type="hidden"
name="p_r_id"
value="3ad896fc20bf70e455dd3">
<input
type="hidden"
name="p_t_id"
value="slin">
<input
type="hidden"
name="athn_type"
value="krb">
<input
type="hidden"
name="jsenabled"
value="false">
<input
type="hidden"
name="jsversion"
value="0">
<input
type="hidden"
name="jsrelease"
value="0">
<input
type="hidden"
name="vbsenabled"
value="false">
<input
type="hidden"
name="vbsversion"
value="0">
<input
type="hidden"
name="vbsrelease"
value="0">
<input
type="hidden"
name="tran[1]_tran_name"
value="slin">
<input
type="hidden"
name="tran[1]_output_type"
value="html_unident">
<table class="FormGrid" border=0 cellpadding=3 cellspacing=0>
<tr align=left valign=top>
<td class="clsFormGridTitle" colspan="3">
Enter security information.
</td>
</tr>
<tr align=left valign=top>
<td class="clsFormGridReqdMsg" colspan="3">
Required information is marked with the <img src='formRequired.gif'>
symbol.
</td>
</tr>
<tr>
<td class="clsFormGridReqErr" valign=middle><img
src="formRequired.gif" align=left width=13 height=13></td>
<td class="clsFormGridLabel" valign=middle>University Network ID</
td>
<td class="clsFormGridInput" valign=middle><input
type="text"
name="u_id"
value=""
size="21"
maxlength="20"
language="jscript"
tabindex="1">
</td>
</tr>
<tr>
<td class="clsFormGridReqErr" valign=middle><img
src="formRequired.gif" align=left width=13 height=13></td>
<td class="clsFormGridLabel" valign=middle>Network Password</td>
<td class="clsFormGridInput" valign=middle><input
type="password"
name="u_pw"
value=""
size="21"
maxlength="256"
language="jscript"
tabindex="2">
</td>
</tr>
<tr>
<td class="clsFormGridButton" colspan="3"align=center
valign=bottom>&nbsp;<input
type="submit"
name="submit"
value="Continue"
language="jscript"
tabindex="3">
<input
type="reset"
name="reset"
value="Clear"
language="jscript"
tabindex="4"><div class="hint"><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fhelp=Login&tran%.5B1%.5D%.5Ftran%.5Fname=shelp&tran%.5B1%.
5D%.5Foutput%.5Ftype=html%.5Funident">Log in Help</a></div>
</td>
</tr>
</table>
&nbsp;<p>
</form>
<script language="VBScript">
<!--
Document.form0.vbsenabled.Value = "true"
Document.form0.vbsversion.Value = "1"
Document.form0.vbsrelease.Value = "0"
If Instr(Navigator.AppVersion, "MSIE 2") = 0 And Instr
(Navigator.AppVersion, "MSIE 3") = 0 Then
Document.form0.vbsversion.Value = ScriptEngineMajorVersion()
Document.form0.vbsrelease.Value = ScriptEngineMinorVersion()
End If
-->
</script>
<table class="DataGrid" border=0 cellpadding=3 cellspacing=1
width=100%>
</table>
&nbsp;<p>
</td><td id="SecondaryContent"><div id="MoodImage"></div><li
id="SidebarR"><h4>Useful Links</h4><ul><li><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fcode=link%.5Funi&tran%.5B1%.5D%.5Ftran%.5Fname=shrdr&tran
%.5B1%.5D%.5Foutput%.5Ftype=html%.5Funident" title='For any issues
with UNI and password'>Activate UNI</a></li><li><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fcode=link%.5Funi&tran%.5B1%.5D%.5Ftran%.5Fname=shrdr&tran
%.5B1%.5D%.5Foutput%.5Ftype=html%.5Funident" title='For any issues
with UNI and password'>Change Password</a></li><li><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fcode=link%.5Fid&tran%.5B1%.5D%.5Ftran%.5Fname=shrdr&tran%.
5B1%.5D%.5Foutput%.5Ftype=html%.5Funident" title='For any ID Card
issues'>ID Center (CU Card)</a></li><li><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fcode=link%.5Freg&tran%.5B1%.5D%.5Ftran%.5Fname=shrdr&tran
%.5B1%.5D%.5Foutput%.5Ftype=html%.5Funident" title='For any Academic
Records Issues'>Registrar</a></li><li><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fcode=link%.5Fsfs&tran%.5B1%.5D%.5Ftran%.5Fname=shrdr&tran
%.5B1%.5D%.5Foutput%.5Ftype=html%.5Funident" title='For accounts and
finaid issues'>Student Financial Services</a></li><li><a href="/?s%.
5Fid=3ad896fc20bf70e455dd3&p%.5Fr%.5Fid=3ad896fc20bf70e455dd3&p%.5Ft%.
5Fid=slin&athn%.
5Ftype=session&jsenabled=false&jsversion=0&jsrelease=0&vbsenabled=false&vbsversion=0&vbsrelease=0&tran
%.5B1%.5D%.5Fcode=link%.5Fhs&tran%.5B1%.5D%.5Ftran%.5Fname=shrdr&tran%.
5B1%.5D%.5Foutput%.5Ftype=html%.5Funident" title='Columbia Medical
accounts issues'>CUMC Student Administrative Services</a></li></ul></
li></td></tr>
<tr><td id="Footer" colspan=3><p id="DataStatus">&nbsp;Student
Services Online data was last updated on Oct. 22, 2009, 03:03:00.</
p></td></tr></table>
</body>
<script language="javascript"> var ret = 0
</script><script language="javascript1.3"> ret = changeScripting('3')
</script><script language="javascript1.2"> if(ret == 0) ret =
changeScripting('2')
</script><script language="javascript1.1"> if(ret == 0) ret =
changeScripting('1')
</script><script language="javascript"> if(ret == 0) changeScripting
('0')
</script></html>
Reply all
Reply to author
Forward
0 new messages