Where can I find an example of Flex application which implements an HTTPService asynchronously called by an AsyncToken and an AsyncResponder?
Thanks in advance
the httpservice send a string like this with a certain frequency:
row#column#number#row#column#number#row#column#number#....
EDITED CODE:
<?xml version="1.0" encoding="utf-8"?...
Hi there, guys!
I'm currently developing a set of webservices in Java, to host on Axis2 running over WebLogic 10.3.0. These webservices receive and return SOAP messages.
As I have a clustered environment on WebLogic, I would like to have the WebLogic's server name (the one I configured using the Administration Console) returned in the ...
I have a flash file which calls a url like: http://test.com/savethis/123456/
I just want my view to save "123456" in the database and return nothing.
After saving the values what do I do? If I redirect it it changes the page and that's bad. I could render a page, but I don't want to. I just want it to end and not throw any errors.
...
Hi,
I am writing a Python program that feeds a search term to google using the google search API and downloads the first 10 results. I was able to do this in Python 2.6 as follows:
query = urllib.parse.urlencode({'q' : 'searchterm','start' : k},doseq=false)
url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&%s' \
...
How to redirect to a query string URL containing non-ascii characters in DJANGO?
When I use "return HttpResponseRedirect(u'/page/?title=' + query_string)" where the query_string contains characters like "你好", I get an error "'ascii' codec can't encode characters in position 21-26: ordinal not in range(128), HTTP response headers must be...
I found myself writing to stringwriter then at the end of the function do a resp.Write(sw.ToString()). Is this unnecessary? If i were to use HttpResponse.Write several times could it potentially send data out multiple times (chunks) even if my page is 2k? How is HttpResponse.Write different from StringWriter.Write?
...
I have a client and a server.
On the client side I have:
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("http://localhost/fa/Default.aspx");
request.Method = "POST";
byte[] data = Encoding.ASCII.GetBytes(GetSAMLRequestB64());
request.ContentType = "text/xml";
request.ContentLength = data.Length;
Strea...
I'm using URLLoader to POST to a server. The xml response from the server can respond with a 404 or a 403 (forbidden) error. However I am unable to get the response codes.
Here is the code
var urlString:String = "some url";
var urlRequest:URLRequest = new URLRequest(urlString);
var loader:URLLoader = new URLLoader();
loader.a...
My question is similar to http://stackoverflow.com/questions/194579/how-to-detect-when-a-user-has-successfully-finished-downloading-a-file-in-php but I have to do the same using IIS, ASP.NET and C#.
None of the methods in the HttpResponse class provide feedback if the data was sent or not, TransmitFile just does its job (or not) and doe...
Hi.
I have a little problem: I'm writing to response content of the file and return it to the client as an ajax response.
But there occurs html substitution: of > to > etc...
What i have to do to make this substitution off ?
res.setHeader( "Cache-Control", "must-revalidate, post-check=0, pre-check=0" );
res.setHeader( "Pragma", "publ...
Hi All,
We have a flash developer who uses calls a file called proxy.php with the querystring ?url="http://feedburner/whatever" to access external data from rss feeds from domains that not by default accessible from swf code. for example I could have the following in the browser: http://localhost/proxy.php?url=feedburner.com/a_feed and...
hello, i am trying to get the headers of an ajax request i made through jquery
$.get(url,
function(response, textStatus, headers ) {
console.log("Response: %o", response);
console.log("TextStatus: %o", textStatus);
console.log("Request: %o", headers);
}
);
this does not seem to be working however:
th...
I use the following code:
- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSHTTPURLResponse *)response {
NSLog(@"Received redirect Response: %@ %@", [response allHeaderFields], [NSHTTPURLResponse localizedStringForStatusCode:[response statusCode]]);
return request;
}
...
I want to download a PDF file from a SQL Server database which is stored in a binary column. There is a LinkButton on an aspx page. The event handler of this button looks like this:
protected void LinkButtonDownload(object sender, EventArgs e)
{
...
byte[] aByteArray;
// Read binary data from database into this ByteArray
...
How do I capture HTTP response when the request is made by web browser?
Webpage retrieves data (with post) from a service.
Service returns a json object. What I want is to capture that json and parse it in realtime.
What would be the simplest way to do it?
...
Hi,
I'm trying to uncompress a GZIPed HTTP Response by using GZIPInputStream. However I always have the same exception when I try to read the stream : java.util.zip.ZipException: invalid bit length repeat
My HTTP Request Header:
GET www.myurl.com HTTP/1.0\r\n
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2) Gecko/201...
I have this following code for bringing page attachments to the user:
private void GetFile(string package, string filename)
{
var stream = new MemoryStream();
try
{
using (ZipFile zip = ZipFile.Read(package))
{
zip[filename].Extract(stream);
}
}
catch (System.Exception ex)
{
...
I am currently trying to send some data from and Android application to a php server (both are controlled by me).
There is alot of data collected on a form in the app, this is written to the database. This all works.
In my main code, firstly I create a JSONObject (I have cut it down here for this example):
JSONObject j = new JSONObje...
Hi Everyone,
Referencing my Earlier Question, regarding downloading a file from a server and handling exceptions properly. I am positive that I had this solved, then in classic programming fashion, returned days later to frustratingly find it broken :-(
Updated code:
private static void GoGetIt(HttpContext context)
{
var...
I'm designing an RESTful API where some calls are public over HTTP, and some require an API key and encryption over HTTPS. I'm deliberating on what response code should be sent if an HTTP request is sent to one of the private resources. So far the only one that jumps out at me is 412 - Precondition Failed, but the standard indicates th...