[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cURL - FTPAPI
Hi Scott -
Thanks for the reply. This is for a SOLR server, which is a search
engine application that runs on a Windows box. The update process will
update the search engine data base.
I don't want HTTPAPI to call cURL; I want to use HTTPAPI to do what
cURL does. So I probably want to do a GET instead of a POST, right?
I'll give that a go.
Thanks!
On Tue, Dec 14, 2010 at 2:05 PM, Scott Klement
<[1]sk@xxxxxxxxxxxxxxxx> wrote:
Hi Michael,
Are you sure this is a valid URI? It looks more like a Unix
command-line. The HTTP protocol does not automatically let you run
remote commands on another server. (Though, a program could be
written
that takes the URI, extracts the command from it, and runs it.)
Normally, cURL does the same thing that HTTPAPI does... so it seems
strange for HTTPAPI to ask cURL to do something?
Can you provide more detail on how this web site is supposed to
work,
and what it's supposed to do?
You also said "there's not much in Data because I don't want to
post
anything". That's a strange thing to say. Why are you using POST
if
you don't have anything to POST? Why not use GET?
On 12/14/2010 8:26 AM, Michael Ryan wrote:
>
> I want to do this cURL call:
>
> curl [1][2]http://server.example.com:8090/solr/update -F
> stream.file=c:/Temp/data/myfile.xml
>
> using HTTPAPI. I've tried an http_url_post like this:
>
> retlen = http_url_post(
> '[2][3]http://server.example.com:8090/solr/update +
> -F stream.file=c:/Temp/data/myfile.xml'
> : %Addr(Data)
> : %Len(%TrimR(Data))
> : '/tmp/newfile.xml');
>
> and got back a 505 - not supported.
>
> There's not much in Data cause I really don't want to post
anything; I
> just want to run the update process with the file (myfile.xml)
> specified.
>
> Any ideas?
>
> Thanks!
>
> References
>
> 1. [4]http://subwiki.artvan.com:8090/solr/update
> 2. [5]http://server.example.com:8090/solr/update
>
>
>
>
>
-------------------------------------------------------------------
----
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [6]http://www.scottklement.com/mailman/listinfo/ftpapi
>
-------------------------------------------------------------------
----
-------------------------------------------------------------------
----
This is the FTPAPI mailing list. To unsubscribe, please go to:
[7]http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
References
1. mailto:sk@xxxxxxxxxxxxxxxx
2. http://server.example.com:8090/solr/update
3. http://server.example.com:8090/solr/update
4. http://subwiki.artvan.com:8090/solr/update
5. http://server.example.com:8090/solr/update
6. http://www.scottklement.com/mailman/listinfo/ftpapi
7. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------