cURL / Mailing Lists / curl-library / Single Mail

curl-library

PHP CURL Custom HTTP Request Problem

From: Dung Nguyen <chong.xipam_at_gmail.com>
Date: Tue, 4 May 2010 11:36:19 +0700

Hello all!
I'm trying do a request use CURL. This request is a GET request. I want to
do like this

GET /config?x=0.12345 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Cookie: JSESSIONID=9JHDF83VJ390FJ30FJ4V04J9V04J4
Host: example.com
Accept: text/html, */*
User-Agent: Mozilla/3.0

however i can't make it work for CURL, it always transfer my request to
GET /config? HTTP/1.1
and this cause my request faild :(

Is there any way to solve my problem ?
Many thanks!

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