[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cURL - FTPAPI



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]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]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. http://subwiki.artvan.com:8090/solr/update
>     2. http://server.example.com:8090/solr/update
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> 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
-----------------------------------------------------------------------