Re: CURL custom request

2013-01-08 Thread Dung Nguyen
thanks! it seem those function is socket wrapper. But anyway i'll have to do thing like that. Thanks! 2013/1/9 Tetetest > Hello Dung, > > You may try curl_easy_send()/curl_easy_recv() functions to send your > custom request and receive the nonstandard response. > These functions are protocol-ag

Re: CURL custom request

2013-01-08 Thread Tetetest
Title: Re: CURL custom request Hello Dung, You may try curl_easy_send()/curl_easy_recv() functions to send your custom request and receive the nonstandard response. These functions are protocol-agnostic, so you will have to parse the response in your code. Wednesday, January 9, 2013, 8:25:42 A

Re: CURL custom request

2013-01-08 Thread Dung Nguyen
ok, i see... if i want it work then i need to modify a lots of thing. The thing is server is not mine, and i need to follow them, too bad :D 2013/1/9 Daniel Stenberg > On Tue, 8 Jan 2013, Michael Wood wrote: > > I imagine getting curl to accept "Welcome to the server\nHTTP/1.1 200 >> OK..." as

Re: [PATCH] build: fix circular header inclusion with other packages

2013-01-08 Thread Yang Tse
On Tue, Jan 8, Daniel Stenberg wrote: > Awesome, thanks for that excellent clarification. Now I'm all good and > happy. Carry on! =) Pushed. Thanks, -- -=[Yang]=- --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiqu

Re: [PATCH] always multi v5

2013-01-08 Thread Yang Tse
Daniel, Patch applies cleanly on top of fea3a3d5. Builds successfully with: Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: Debug TrackMemory IDN Largefile NTLM NTLM_WB SSL libz TLS-SRP Nearly all test cases pass except for:

Re: [PATCH] build: fix circular header inclusion with other packages

2013-01-08 Thread Daniel Stenberg
On Tue, 8 Jan 2013, Yang Tse wrote: Pasting below updated commit message. I hope it is more clear now... Awesome, thanks for that excellent clarification. Now I'm all good and happy. Carry on! =) -- / daniel.haxx.se --- List

Re: [PATCH] always multi v5

2013-01-08 Thread Yang Tse
On Tue, Jan 8, 2013, Daniel Stenberg wrote: > Those line endings are a bit painful to handle in patches. Try the attached > gzip version and see if it makes anything better! Perfect! Building now... -- -=[Yang]=- --- List admin: ht

Re: CURL custom request

2013-01-08 Thread Daniel Stenberg
On Tue, 8 Jan 2013, Michael Wood wrote: I imagine getting curl to accept "Welcome to the server\nHTTP/1.1 200 OK..." as a response would also require modifications? Oh right. I didn't even spot that part. That part would possibly require a more complicated modification... -- / daniel.haxx

Re: CURL custom request

2013-01-08 Thread Michael Wood
On 8 January 2013 20:29, Daniel Stenberg wrote: > On Tue, 8 Jan 2013, Dung Nguyen wrote: > >> I have server with i need to call the request like this >> *GET /test* >> * >> * >> * HTTP/1.1* > > You can often make libcurl misbehave in many ways, but I don't think you can > force libcurl to do such

Re: CURL custom request

2013-01-08 Thread Daniel Stenberg
On Tue, 8 Jan 2013, Dung Nguyen wrote: I have server with i need to call the request like this *GET /test* * * * HTTP/1.1* You can often make libcurl misbehave in many ways, but I don't think you can force libcurl to do such a protocol violation unless you change lib/url.c and recompile. T

Re: [PATCH] always multi v5

2013-01-08 Thread Daniel Stenberg
On Tue, 8 Jan 2013, Yang Tse wrote: Probably it is gmail web interface acting funny, but given that the patch affects test case definitions and by design some lines of these include ^M line endings while others not it would be interesting if you provided it gzip'ed to preserve these. And sec

Re: [bagder/curl] 7a6d8b: configure: update req to 2.59

2013-01-08 Thread Daniel Stenberg
On Tue, 8 Jan 2013, Yang Tse wrote: this change we are leaving behind in the dust those using autoconf 2.57 for probably no good reason, including IRIX autobuilds. ... Changing AC_LIBTOOL_WIN32_DLL and AC_PROG_LIBTOOL with LT_INIT rises libtool version requirement from 1.4.2 all the way up t

Re: CURL custom request

2013-01-08 Thread Dan Fandrich
On Tue, Jan 08, 2013 at 11:12:14PM +0700, Dung Nguyen wrote: > hi! > I have server with i need to call the request like this > GET /test > >  HTTP/1.1 I'm assuming that this is the URL-decoded version of GET /test%0a%0a and not some other unprintable characters. Not that it really matters, becaus

Re: [PATCH] always multi v5

2013-01-08 Thread Yang Tse
On Tue, Jan 8, 2013, Daniel Stenberg wrote: > I accidentally posted a version that wasn't the latest rebase yesterday, and > with Steve Holme's POP3 TLS fix this morning (that required a little extra > merge edit) I decided to post a follow-up version. Nothing else changed. Hi Daniel, I'm trying

Re: [bagder/curl] 7a6d8b: configure: update req to 2.59

2013-01-08 Thread Yang Tse
On Tue, Jan 8, 2013 at 11:51 AM, GitHub wrote: > Branch: refs/heads/master > Home: https://github.com/bagder/curl > Commit: 7a6d8b1b1a8fcc184c36d6b6e741e32250b4bacb > > https://github.com/bagder/curl/commit/7a6d8b1b1a8fcc184c36d6b6e741e32250b4bacb > Author: Daniel Stenberg > Da

Re: [PATCH] build: fix circular header inclusion with other packages

2013-01-08 Thread Yang Tse
Ack, Pasting below updated commit message. I hope it is more clear now... build: fix circular header inclusion with other packages This commit renames lib/setup.h to lib/curl_setup.h and renames lib/setup_once.h to lib/curl_setup_once.h. Removes the need and usage of a header inclusion guard fo