[squeak-dev] Curl

Steven W Riggins mailinglists at geeksrus.com
Sat Aug 16 17:46:10 UTC 2008


Is anyone using the curl plugin from:

http://wiki.squeak.org/squeak/5865

I am trying to do a post to a site that redirects, but I see two  
anomalies:


1) the contents remain in the contents buffer, so that tells me I am  
doing posts incorrectly
2) I just get the http page back, not the results of the post

I tried this with another form and it posted ok, but I did get the  
post in the contents buffer as well.

The following command to curl works as desired:

curl -d "q=title:help&fmt=xml&rows=50&fl=identifier&xmlsearch=Search" http://www.archive.org/advancedsearch.php/searchresults.php

but:

c := Curl new.
c url: 'http://www.archive.org/advancedsearch.php/searchresults.php'
c clearContents; contents:  
'q=title:dodgers&fmt=xml&rows=50&fl=identifier&indent=&xmlsearch=Search'
c post

returns:

'q=title 
%3Adodgers&fmt=xml&rows=50&fl=identifier&indent=&xmlsearch=Search'

ie, the post failed.

Steve



More information about the Squeak-dev mailing list