search for: httpheader

Displaying 20 results from an estimated 23 matches for "httpheader".

2017 Jun 09
6
Logging the click data
> The log command will be executed wherever it is in the template. > By "current system user", what do you mean? There'll need to be > write permission for the CGI process, which is probably the same > identity as the web server process. I basically changed the ownership of the /var/log/omega directory to the current user using: sudo chown `whoami` /var/log/omega But I
2012 Dec 05
1
request
...i have mentioned in protocols in CreateNeosComm). However, the proxy server does not have any password though to access wifi i need password. After inserting the protocols as shown in Input (below), i have go the output as shown in below. input library (rneos) NC<-CreateNeosComm(curlopts=list(httpheader=c('content-type'="text/xml", 'User-Agent'="R"), protocols=proxy.noc.titech.ac.jp:3128, port=3332),curlhandle=getCurlHandle()) #to check the neos server is active"NeosServer is alive" is returned Nping(convert=T, nc=NC) output > library (rneos) >...
2012 Oct 30
2
RCurl - curlPerform - Time out?!?
...! run = 1 i=0 while(run==1) { i=i+1 try ( run <- curlPerform(url = "http://search.webofknowledge.com/esti/wokmws/ws/WokSearchLite.cgi", httpheader=c("Accept-Encoding"="gzip,deflate","Content-Type"="text/xml;charset=UTF-8",'SOAPAction'='""', "Cookie"=paste('SID="',s_session,'"',sep=""),"Content-Length"=paste(nchar(s_body)),...
2007 Nov 12
1
Microsoft SOAP - Help!!
...t;ResultFields xsi:type="xsd:string">Title</ResultFields> </SourceRequest></Requests></Request></ns3849:Search></SOAP-ENV:Body> </SOAP-ENV:Envelope>' curlPerform(url="http://soap.search.msn.com/webservices.asmx?wsdl", httpheader=c(Accept="text/xml", Accept="multipart/*", 'Content-Type' = "text/xml; charset=utf-8"), postfields=body, writefunction = h$update, verbose = FALSE ) ##Put the responce in body. body = h$value()...
2008 Jul 10
1
custom http headers in form.submit / upload without original form
Heyas :) I''m wondering how do I do to send my custom HTTP headers when posting a form. agent.set_headers is a private method and I don''t know how to get a reference to HTTPHeaders to use add_field and such. Since my request is a form, I''m sending it using agent.submit(form). Any hints? Bonus question: I would like to upload a file to a REST webservice, but I haven''t found the way to do it without first creating a Hpricot form node which IMHO doesn'...
2006 Dec 09
1
manipulate headers?
...$mech->get($url) so the header values for Referer and Cookie are passed with the HTTP GET. There seems to be an add_field method in mechanize.rb: request.add_field(''Referer'', cur_page.uri.to_s) and rdoc (http://mechanize.rubyforge.org/) indicates an add_field value for Net::HTTPHeader, but the example is funny, because the example says "add_header", not "add_field". In either case, none of the "add_*" statements in the script below work, each yields an "undefined method" error. require ''mechanize'' mech = WWW::Mechanize....
2017 Jun 18
2
Logging the click data
...; instead of "Reply to all" but later I did send a separate mail to the mailing list. > Thinking about this, the way that CGI works is you set a 'Status' > header which changes this behaviour. So we don't actually need a > new command, just something like: > > $httpheader{Status,302 Found} > $httpheader{Location,$cgi{URL}} Ok, got it. I was initially under the impression that we needed a new Omegascript command to enable opening a webpage given a url. > See http://www.oreilly.com/openbook/cgi/ch03_07.html and the > parse_omegascript() function (in query.c...
2007 Oct 04
2
newbie question with login form
hi, i''m just starting to work with this incredible tool... but i got a first problem with the login process i''m logging on my app like this : ------ @agent = WWW::Mechanize.new { |a| a.log = Logger.new("mech.log") } @agent.user_agent_alias = ''Mac Safari'' @page = @agent.get("http://myappAdress/") @form = @page.forms.first
2006 Jan 03
1
opensearch template
I've just noticed the Omega "opensearch" template seems to lack escaping for URLs in <link> tags: $httpheader{Content-Type,application/xml}<?xml version="1.0"?> <rss version="2.0" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/"> <channel> <title>Xapian search results</title> <link>$env{SCRIPT_NAME}?DB=$dbname&amp...
2016 Apr 01
1
Using R for cURL commands
...s. The method I've been using so far: I found some information online suggesting i'd use this code: *js is a json from my R environment Library(RCurl) postForm("https://MYWEBSITE.eu/api/v2/organisations/abc/projects/cosson/datasets/DATABASE", .opts = list(postfields = js, httpheader = c('Content-Type' = 'application/json', Accept = 'application/json'), userpwd = "name:pwd", ssl.verifypeer = FALSE)) (userpwd and url have been changed to hide sensitive information) This leads to the following error: "Error: Unauthorized". I've...
2010 Nov 14
1
RCurl and cookies in POST requests
...(cookiefile=c_file, cookiejar=c_file) # Either getURL OR postForm: aaa <- getURL(site, curl=curlHandle) #aaa <- postForm(site, .params=list(par=cookie_1), curl=curlHandle, style="POST") # Debug POST: #d = debugGatherer() #postForm(site, .params=list(par=cookie_1), .opts=list(httpheader = c( # header = "foo: bar"), debugfunction = d$update, verbose=T), # curl=curlHandle, style="POST") #write.table(d$value()[["headerIn"]], file="debug_in.txt") #write.table(d$value()[["headerOut"]], file="debug_out.txt") rm(curlHandle...
2020 Nov 19
0
Asterisk 13.38.0 Now Available
...s intro of music the first time it is played (Reported by Thomas Frederiksen) * ASTERISK-29081 - res_stasis: Add compare function for bridges moh container (Reported by Hajek Michal) * ASTERISK-29085 - func_curl: Segmentation fault when using CURL after setting httpheader CURLOPT (Reported by P��ter Juh��sz) * ASTERISK-28416 - Unable to get rtp codec payload code for slin (Reported by Brian J. Murrell) New Features made in this release: ----------------------------------- * ASTERISK-29027 - Implement support for History-Info (R...
2013 Apr 24
0
string size limits in RCurl
...e code [1], but it should shed some light on the problem. # Note that .base.url is the basic url for the API, q is a query, user # is specified, etc. session = getCurlHandle() curl.opts <- list(userpwd = paste(user, ":", key, sep = ""), httpheader = "Content-Type: application/json") request <- paste(.base.url, q, sep = "") txt <- getURL(url = request, curl = session, .opts = curl.opts, write = basicTextGatherer()) or r = dynCurlReader() curlPerform(url = request, writefunction = r...
2010 Apr 16
0
RCurl slow when sending data over 1kb
I am using RCurl's curlPerform command to send an XML string to an HTTP server running on the localhost. The command is something like this: reader <- basicTextGatherer() curlPerform(url="http://127.0.0.1/", httpheader=c('Content-Type' = "text/xml; charset=utf-8"), postfields=toString.XMLNode(xmlRoot(xdoc)), writefunction=reader$update, .opts=curlOptions(noproxy="*")) When sending a short string, the web server responds instantly. However, when the content-length gets above 1024 b...
2020 Nov 19
0
Asterisk 17.9.0 Now Available
...TP instance when "auto" DTMF is used (Reported by Sebastian Damm) * ASTERISK-28311 - dsp: ast_dsp_silence_noise_with_energy wrong judgment of frame format (Reported by ���������) * ASTERISK-29085 - func_curl: Segmentation fault when using CURL after setting httpheader CURLOPT (Reported by P��ter Juh��sz) * ASTERISK-24329 - Music On Hold announcement cuts intro of music the first time it is played (Reported by Thomas Frederiksen) * ASTERISK-29089 - RTP Ports not cleared after hangup (Reported by Ross Beer) * ASTERISK-2...
2008 Jun 06
2
Finding out the duration of an Ogg stream
Hello people! I'm developing a Java Ogg media player applet and I have encountered a problem while creating a progress bar. I need to know how long, in samples or seconds, the Ogg stream that I'm playing is, and I need to know it before I have downloaded the entire stream. Problem is, I don't see how I could do that. I could provide a "duration" argument, but that would
2020 Nov 19
0
Asterisk 16.15.0 Now Available
...- Crash when ast_translator_build_path fails (Reported by Jasper van der Neut) * ASTERISK-28311 - dsp: ast_dsp_silence_noise_with_energy wrong judgment of frame format (Reported by ���������) * ASTERISK-29085 - func_curl: Segmentation fault when using CURL after setting httpheader CURLOPT (Reported by P��ter Juh��sz) * ASTERISK-24329 - Music On Hold announcement cuts intro of music the first time it is played (Reported by Thomas Frederiksen) * ASTERISK-29089 - RTP Ports not cleared after hangup (Reported by Ross Beer) * ASTERISK-2...
2009 Feb 26
2
ftp fetch using RCurl?
Hi everyone, I have to fetch about 300 to 500 zipped archives from a remote ftp server. Each of the archive is about 1Mb. I know I can get it done by using download.file() in R, but I am curious that is there a faster way to do this using RCurl. For example, are there some parameters that I can set so that the connection does not need to be rebuilt....etc. A even simpler question is, how can I
2020 Nov 19
0
Asterisk 18.1.0 Now Available
...wrong judgment of frame format (Reported by ���������) * ASTERISK-24329 - Music On Hold announcement cuts intro of music the first time it is played (Reported by Thomas Frederiksen) * ASTERISK-29085 - func_curl: Segmentation fault when using CURL after setting httpheader CURLOPT (Reported by P��ter Juh��sz) * ASTERISK-29089 - RTP Ports not cleared after hangup (Reported by Ross Beer) * ASTERISK-29081 - res_stasis: Add compare function for bridges moh container (Reported by Hajek Michal) * ASTERISK-28416 - Unable to get rtp cod...
2007 Sep 26
1
AW: How to get the duration of a file or track?
Hello, > (1) Split the content into chain segments > (2) extract the first and last data packet from each segment, for all tracks > (3) recover / calculate the granulepos values for the first and last data packets (*) > (4) convert the granulepos values from the first and last data packets into time values > (5) take the largest difference between start and end time as the total