<div dir="ltr">Steve hello,<br><br>Although I&#39;ve written the curl plugin I&#39;m no expert in http protocol (redirects, posts etc).. <br>My shot: you may try to ask curl to follow redirects as in the example below (not onFollowLocation switch):<br>
<br>c := Curl new.<br>c onFollowLocation.<br>c url: &#39;<a href="http://www.archive.org/advancedsearch.php/searchresults.php">http://www.archive.org/advancedsearch.php/searchresults.php</a>&#39;.<br>c clearContents; contents: &#39;q=title:dodgers&amp;fmt=xml&amp;rows=50&amp;fl=identifier&amp;indent=&amp;xmlsearch=Search&#39;.<br>
c post.<br>c contents.<br><br><br>I&#39;m getting something like this. If it is not what you need, could you please explain correct behaviour so I may able to fix it?<br><br>q=title:dodgers&amp;fmt=xml&amp;rows=50&amp;fl=identifier&amp;indent=&amp;xmlsearch=Search&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;response&gt;<br>&lt;lst name=&quot;responseHeader&quot;&gt;&lt;int name=&quot;status&quot;&gt;0&lt;/int&gt;&lt;int name=&quot;QTime&quot;&gt;99&lt;/int&gt;&lt;lst name=&quot;params&quot;&gt;&lt;str name=&quot;wt&quot;&gt;xml&lt;/str&gt;&lt;str name=&quot;rows&quot;&gt;50&lt;/str&gt;&lt;str name=&quot;indent&quot;/&gt;&lt;str name=&quot;qin&quot;&gt;title:dodgers&lt;/str&gt;&lt;str name=&quot;q&quot;&gt;title:dodgers&lt;/str&gt;&lt;str name=&quot;fl&quot;/&gt;&lt;/lst&gt;&lt;/lst&gt;&lt;result name=&quot;response&quot; numFound=&quot;8&quot; start=&quot;0&quot; maxScore=&quot;6.4772797&quot;&gt;&lt;doc&gt;&lt;float name=&quot;score&quot;&gt;6.4772797&lt;/float&gt;&lt;float name=&quot;avg_rating&quot;&gt;0.0&lt;/float&gt;...........<br>
<br>Regards,<br>&nbsp; Danil<br><br><div class="gmail_quote">2008/8/16 Steven W Riggins <span dir="ltr">&lt;<a href="mailto:mailinglists@geeksrus.com">mailinglists@geeksrus.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is anyone using the curl plugin from:<br>
<br>
<a href="http://wiki.squeak.org/squeak/5865" target="_blank">http://wiki.squeak.org/squeak/5865</a><br>
<br>
I am trying to do a post to a site that redirects, but I see two anomalies:<br>
<br>
<br>
1) the contents remain in the contents buffer, so that tells me I am doing posts incorrectly<br>
2) I just get the http page back, not the results of the post<br>
<br>
I tried this with another form and it posted ok, but I did get the post in the contents buffer as well.<br>
<br>
The following command to curl works as desired:<br>
<br>
curl -d &quot;q=title:help&amp;fmt=xml&amp;rows=50&amp;fl=identifier&amp;xmlsearch=Search&quot; <a href="http://www.archive.org/advancedsearch.php/searchresults.php" target="_blank">http://www.archive.org/advancedsearch.php/searchresults.php</a><br>

<br>
but:<br>
<br>
c := Curl new.<br>
c url: &#39;<a href="http://www.archive.org/advancedsearch.php/searchresults.php" target="_blank">http://www.archive.org/advancedsearch.php/searchresults.php</a>&#39;<br>
c clearContents; contents: &#39;q=title:dodgers&amp;fmt=xml&amp;rows=50&amp;fl=identifier&amp;indent=&amp;xmlsearch=Search&#39;<br>
c post<br>
<br>
returns:<br>
<br>
&#39;q=title%3Adodgers&amp;fmt=xml&amp;rows=50&amp;fl=identifier&amp;indent=&amp;xmlsearch=Search&#39;<br>
<br>
ie, the post failed.<br>
<br>
Steve<br>
<br>
</blockquote></div><br></div>