We are in the process of writing a native windows app (MFC) that will be uploading some data to our web app. Windows app will allow user to login and after that it will periodically upload some data to our web app. Upload will be done via simple HTTP POST to our web app. The concern I'm having is how can we ensure that the upload actuall...
Weird question but here goes...
I have a webpage and i want to get images from another site. However i would like to prevent users to knowing which site. It doesnt need to be perfect just 'good enough'. Is there a way i can write and have the browser get the image from another domain? If the user right clicks and hits view image i woul...
I'm building a sinatra Ruby app that interacts with Jambool Social Gold API (a virtual currency platform).
After a transaction is complete (the user purchases points) Jambool sends a "postback" to "foo.com/postback?signature=foo".
The API documentation says that it expects an OK response in the body of the postback (after I validate th...
I am trying to prevent If-modified request from client to server but I am failing.
I think that I am missing something so I am attaching the HTTP communication of the two requests. I would expect that the second request will not be issued:
GET XXXXX/js/Is.js HTTP/1.1
Accept: */*
Referer: http://XXXXX/XXXXX/
Accept-Language: he
UA-CPU: ...
how can i determine if anything at the given url does exist in the web using python? it can be a html page or a pdf file, shouldnt be matter.
ive tried the solution written in this page http://code.activestate.com/recipes/101276/
but it just returns a 1 when its a pdf file or anything.
...
Proxy auto-configuration (PAC) files contain javascript which resolves destination hosts into proxy configuration. Clearly I could use an embedded javascript engine and provide the objects that PAC files require, but that seems like a lot of work just to resolve a proxy -- I would much rather just have a library to do it.
I'm intereste...
My brother has a computer running Windows XP with SP2 installed. His computer was behaving badly (very old installation of Win) and one of the problems was that he could not upload jpegs to Facebook, for example. The upload would complete, but the images are garbled.
Finally I decided it was time to format his computer and reinstall w...
I've been doing some thinking about data redundancy, and just wanted to throw everything out in writing before I kept going along with this (and furthermore to double check whether or not this idea has already been put into practice).
Alright, so here goes.
The internet is filled with redundant data, including text, images, videos, etc...
I understand the basics of HTML page caching.
My uncertainty relates to how caching works on images, included external scripts, and included CSS stylesheets that the HTML page uses.
For example, let's say I have an HTML page that is set to expire in 7 days. The page has 10 images on it, 2 included external CSS (.css) stylesheets, and 2...
I've got my own implementation of this wrapped up in a function that takes a URL argument but I can't help thinking there must be a nice function that does this already within the Android API.
Does such a function exist?
EDIT: Oops. I would just like the text - not the HTML.
...
i want to send xml file with userid and pass over HTTPs and then send all other xml file on HTTP using POST method and get the response as a xml file back. in ASP.NET (with vb.net preferred)
The url to which i want to send my xml file is:http://www.hostelspoint.com/xml/xml.php
exect xml file pettern is:
<?xml version="1.0" encoding="U...
How can I return a HTTP 401 from a WCF service?
...
I'm writing a webapp that reponses an HTTP redirect. Is there a way to force the client to forward the headers I include in the response to the new url?
Example request:
POST /insertion HTTP/1.1
Content-Length: 9
(content)
Webapp response:
HTTP/1.x 302 Found
Location: /dock
Mydata: asdf
Next client request:
GET /dock HTTP/1.1
My...
Hello!
I have a PHP 5.1.0 website (actually it's 5.2.9 but it must also run on 5.1.0+).
Pages are generated dynamically but many of them are mostly static. By static I mean the content don't change but the "template" around the content can change over time.
I know they are several cache systems and PHP frameworks already out there, bu...
I have got following code witch are sending xml file on HTTP protocol and getting response back as xml file from webserver and its working fine with HTTP protocol, but now i need to send such a XML file to HTTPS protocol (not http) and need to get response as xml file from it. the code to send xml file and get response from HTTP is :
...
Hello,
I didn'y manage to query a web service from android emulator (previously I had a UnresolvedHostException but this is ok). Now that I can go any further, I do not have anything returned in the HttpResponse's Entity (length is -1).
String url = serverUrl + resource;
Log.d(TAG, "GET: " + url);
HttpClient client = new DefaultHttpClie...
Hi,
I have a small problem developing/optimizing a web page.
I know it is good to have an ALT text for images. I had a set of 10 small images and alt-text for each. Note that there is a pressing need to make sure the first time visitor saw the website as quickly as possible.
But I thought, 10 HTTP requests? So, what I did was, combine...
I'm writing code, which takes the raw body of the post request (from a form, basically) and splits it into variables. Then it does some recoding on them and spits out the recoded post body back to output.
My question is if I can safely assume that splitting the body by the "&" character and then by "=" on the elements of the resulting a...
hello.
trying to write a functional php script to detect charset retrieve web pages.
My script works, but if I enter get_headers () for webtrh.cz/66997-fakturace-ramci-dph?p=416206
get_headers(http://webtrh.cz/66997-fakturace-ramci-dph?p=416206);
the result:
get_headers() [function.get-headers]: Redirection limit reached, aborting. i...
I use PHP to generate dynamic Web pages. As stated on the following tutorial (see link below), the MIME type of XHTML documents should be "application/xhtml+xml" when $_SERVER['HTTP_ACCEPT'] allows it. Since you can serve the same page with 2 different MIMEs ("application/xhtml+xml" and "text/html") you should set the "Vary" HTTP header ...