I'm doing this to fetch some data:
c = pycurl.Curl()
c.setopt(pycurl.ENCODING, 'gzip')
c.setopt(pycurl.URL, url)
c.setopt(pycurl.TIMEOUT, 10)
c.setopt(pycurl.FOLLOWLOCATION, True)
xml = StringIO()
c.setopt(pycurl.WRITEFUNCTION, xml.write )
c.perform()
c.close()
My urls are typically of this sort:
http://host/path/to/resource-f...
Hi ,
I want to create a application (.apk). which after installing and clicking on that calls a locally deployed application or external url. Can anybody tell me steps to create apk for this purpose.
Thanks in advance
amar
...
Hi all,
I am a newb developer as far as Flex and Flash is concerned. This is what I'm trying to do:
1) Send a HTTP request to our server (with a custom made URL). The URL basically tells the server to send data in a CSV format.
2) The server sends a 200 OK response, which has Content-Type: application/csv and the payload is pure CSV da...
I'm using Delphi 2006 and Indy 10. I create a form and drop down an IdHttpServer component. I make an OnCreate event for the form to set the server active, and I enter these lines for the server's OnCommandGet:
procedure TForm3.IdHTTPServerCommandGet(AContext: TIdContext;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPRespo...
I know that using SSL is one way to do this. I go to websites like Facebook and LinkedIn and see that they only use https when they are dealing with sensitive data like passwords and personal settings. How is this done? How are they able to implement https on some websites while using http on others, while still remaining secure, or are ...
Code is below, when I hit the page with:
http://ryan.local.testmode.com/timecrunch/bctimepost.ashx?project=2593059&person=2831215&date=04/16/2009&hours=2.5&case=555
it just sort of hangs with the loading bar moving slowly forever till I stop it, did I forget to do something? I can't figure out which line of code is use...
Hello all,
I wish to upload from my Flash Application (AS3) to imageshacks XML API. I wish to know how I can do this.
"In Flash, we must POST the data using the UrlRequest and UrlLoader classes, however we run into a limitation of the Flash API. The data property of a UrlRequest can either be a UrlVariablesByteArray object. There is no...
Can anyone paste some code on how to do an http post of a couple values?
...
I have a shopping cart website running classic ASP that needs help during the checkout process. When a user is ready to checkout, they are redirected to an SSL version of the site.
Response.Redirect "https://mysecuresite.com/beginCheckoutProcess.asp"
When the jump occurs, the customer starts a new session when they arrive at the SSL...
I have a WCF service deployed on production. I'm looking for a tool to forward a 'Copy' of all the messages received by that service to a development server. I need this to debug the requests in my IDE on the Dev box.
...
I want to use the highest possible number of threads (to use less computers) but without making the bottleneck to be in the client.
...
I have written a script in python that uses cookies and POST/GET. I also included proxy support in my script. However, when one enters a dead proxy proxy, the script crashes. Is there any way to check if a proxy is dead/alive before running the rest of my script?
Furthermore, I noticed that some proxies don't handle cookies/POST headers...
HTTP defines eight methods (sometimes referred to as "verbs")
Can you help me find examples for each one so I can test and understand them better?
...
Hello!
I want to write a simple P2P test app which uses HTTP as
underlying protocol.
The app has to decide on demand, if it should
act as a HTTP server, or as a HTTP client.
The classic way which I am aware of, would be to deploy the app on
some existing HTTP server. But this is the wrong way for my intention.
It has to be the other wa...
The title of this question should be self explanatory, but basically I have this code (working)
progfrm = new progressform();
System.Net.WebClient ahwebclient = new System.Net.WebClient();
progfrm.Show();
ahwebclient.UploadProgressChanged += new System.Net.UploadProgressChangedEventHandler(ahwebclient_Upl...
Obviously, you can't push data to a web application, as HTTP works in a request-response cycle.
But what hacks/methods do you know of that can imitate pushing data to a client?
...
I'm in the process of embedding a small web server into my program.
It's relatively simple - only needs to serve up raw html files and javascript.
I have some async networking code I can use to get the basic plumbing.
But are there any readily available libraries that can understand http?
I just need to be able to parse the http reques...
In Python, I'm trying to read the values on http://utahcritseries.com/RawResults.aspx. How can I read years other than the default of 2002?
So far, using mechanize, I've been able to reference the SELECT and list all of its available options/values but am unsure how to change its value and resubmit the form.
I'm sure this is a common ...
I'm working on an application that reaches out to a web service. I'd like to develop a proxy class that returns a fake response from the service, so I don't have to constantly be hitting it with requests while I'm developing/testing other parts of the app.
My application is expecting a response generated via Net::HTTP.
response = Net::...
Hi there,
I'm having a problem with redirect_to :back. Yes, it's referrers.
I often get the exception (ActionController::RedirectBackError) "No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env[\"HTTP_REFERER\"]."
I realise tha...