Re: Curl-Loader questions
Status: Alpha
Brought to you by:
coroberti
From: Yossi S. <y1...@gm...> - 2011-02-27 23:02:29
|
Thanks Robert, Point 3 and 4 work nicely with FORM_STRING. Regarding point 1, see the comment below. Thanks, Yossi On Sun, Feb 27, 2011 at 6:31 PM, Robert Iakobashvili <cor...@gm...>wrote: > Hi Yossi, > > On Sun, Feb 27, 2011 at 6:08 PM, Yossi Shaul <y1...@gm...> wrote: > >> >> 1. When the tag FORM_STRING is used to read data from file, can you read >> more than 2 variables (credentials) from the file? >> > > Yes > Yossi: The third varaible and on read null from the file. Here is my config line followed by the request log: FORM_STRING =email=%s&firstname=%s&lastname=%s&address=%s POST /api/users/create?authkey=0v9iq9tm8l4eug1k1cktnsk0u5& HTTP/1.1 Authorization: Basic dGVzdGVyOmFwcHNkcmVhbQ== User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Accept: */* Content-Length: 69 Content-Type: ap... email=sh...@gm...&firstname=test&lastname=(null)&address=(null) 180 0 0 1 !! OK 200 HTTP/1.1 200 OK external file looks like this: # Separator used here is ',' sh...@gm...,test,last,address > >> 2. Can MULTIPART_FORM_DATA tag get data from external file? >> > > No, but it is easy to add, simple C-prog. > > > >> 3. Can MULTIPART_FORM_DATA/FORM_STRING tag be used with PUT request? >> > > REQUEST_TYPE - HTTP request method to be chosen from GET, POST or PUT. > > Have you tried? > > >> 4. Is there a way to get paramter value for a GET request from external >> file? We need to construct a url request that looks like: >> >> http://www.example.com/test/authenticate?username=VALUE1&password=VALUE2&countryid=VALUE3 >> where VALUE1, VALUE2, and VALUE3 need to be imported from external file. >> > > > http://curl-loader.svn.sourceforge.net/viewvc/curl-loader/trunk/curl-loader/conf-examples/get-forms.conf > > and try FORM_USAGE_TYPE= RECORDS_FROM_FILE > > As a general note - it's a simple C-written open-source > wrapper around libcurl. > > http://curl-loader.sourceforge.net/doc/faq.html#tag-description > > > <http://curl-loader.svn.sourceforge.net/viewvc/curl-loader/trunk/curl-loader/conf-examples/get-forms.conf> > > >> >> >> Thanks, >> Yossi >> > > > >> >> >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search & Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT >> data >> generated by your applications, servers and devices whether physical, >> virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> curl-loader-devel mailing list >> cur...@li... >> https://lists.sourceforge.net/lists/listinfo/curl-loader-devel >> >> > > > -- > Regards, > Robert Iakobashvili, Ph.D. > > Home: http://www.ghotit.com > Blog: http://dyslexia-blog.ghotit.com > Twitter: http://twitter.com/ghotit > Facebook: http://facebook.com/ghotit > ...................................................................... > Ghotit Dyslexia > Assistive technology that understands you > ...................................................................... > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > curl-loader-devel mailing list > cur...@li... > https://lists.sourceforge.net/lists/listinfo/curl-loader-devel > > |