cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to Enable always absolute URL PATH in libcurl HTTP POST request.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 4 Oct 2013 16:26:27 +0200 (CEST)

On Thu, 3 Oct 2013, Venkataragavan Vijayakumar wrote:

> I have a HTTP server which is accepting only absolute URL path in HTTP POST
> request.

As was said, that's not HTTP compliant and then you're on a path toward pain
and suffering.

But if you want to trick libcurl into sending an absolute path to a server you
can probably do that by telling libcurl to use it as a proxy. Like when trying
something like this with the command line tool:

   curl -x host.example.org:80 http://host.example.org/get/the/file.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-04