cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURL custom request

From: Dung Nguyen <chong.xipam_at_gmail.com>
Date: Tue, 8 Jan 2013 23:12:14 +0700

hi!
I have server with i need to call the request like this
*GET /test*
*
*
* HTTP/1.1*
*Accept: */**
*Connection: Keep-Alive*
*User-Agent: Mozilla/4.0*
*Host: severtest*

normally the request is GET /test HTTP/1.1 but i need to send request like
above
and the server is respond like this
*Welcome to the server*
*HTTP/1.1 200 OK*
*Server: custom*
*Content-Type: text/html*
*Content-Length: 36*
*Accept-Ranges: bytes*

except the "*Welcome to the server*"* *everything work like normal server.

Can i use lib curl to do this ?

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