cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: PHP script to accept PUT from curl on Apache

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 27 Mar 2006 09:34:39 +0200 (CEST)

On Sun, 26 Mar 2006, David Barrett wrote:

> I hate to ask this basic question, but scouring the net and mailing list
> isn't turning up what I need. Basically, how do I use the curl command line
> to PUT a file to a PHP script in Apache?

And you use the curl command line fine. Your problem is in the server/PHP end
and not with curl...

> C:\>curl -i -T test http://be1.redswoosh.net/metadata/
> HTTP/1.1 100 Continue
>
> HTTP/1.1 404 Failed

This attempts to send a PUT but your server rejects it.

Why it rejects it is a PHP issue I can't answer to.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-03-27