I have an ajax call that really needs to be https. However, the page that it is being called from is http. The browser complains about restricted URI denied, presumably due to the same origin policy. Are there any known workaround for this?
...
How should i sanitize urls so people don't put 漢字 or other things in them?
EDIT: I'm using java. The url will be generated from a question the user asks on a form. It seems StackOverflow just removed the offending characters, but it also turns an á into an a.
Is there a standard convention for doing this? Or does each developer just ...
My Browser isn't sending back an If-Modified-Since Header for PHP generated Content
on the first request my script sends:
(Status-Line) HTTP/1.1 200 OK
Date Thu, 21 Jan 2010 08:55:25 GMT
Server Apache/2.2.11 (Win32) PHP/5.2.9-1
X-Powered-By PHP/5.2.9-1
Pragma no-cache
x-ua-compatible IE=8;FF=3;OtherUA=4
Last-Modfied Sat, 02 Jan 2010 02...
I'm connecting to a url with a httpurlconnection in java 1.6
The server I connect uses DNS round robin to share load between multiple servers.
How can I get the remote ip address that I have actually connected to?
HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();
//I then need something like this!
log(SUCCESS, "m...
I want to use HTTP Digest Authentication with a central database that stores usernames and encrypted passwords. These data should be used by different servers like Apache httpd or Tomcat for example. The clients will be humans with browsers and other applications communicating in a RESTful way.
As far as I understand I could not use a t...
I'd like to create my own custom HTTP requests. The WebClient class is very cool, but it creates the HTTP requests automatically. I'm thinking I need to create a network connection to the web server and pass my data over that stream, but I'm unfamiliar with the library classes that would support that kind of thing.
(Context, I'm wor...
i need a c program to decode http packets. can someone help me or refer to some pointers.
Thanks in Advance.
Raj.
...
Can i use libpcap api c api to read/decode/understand HTTP packets.
Thanks, Gino.
...
I am unittesting a bit of code that can fetch files either from the local file system, or from http or ftp. To unittest it I created a simple method that uses the HTTPListener class from the BCL to run a one-off webserver on a different thread, it just serves a byte array that I send in and then shuts down. (See code for this below).
I...
Hi there
I was wondering if you could help me, Im trying to set an expiration date on the caching of certain files in my website, are there some tips you could give me how to do that? Ive been able to find some things on how to change entire file types, but not SPECIFIC files. Is that possible?
ExpiresActive On # enab...
Hello,
I'm trying to figure out which URL I was directed to. I'm using the following code and it seems to hide the redirect.
HttpPost httpPost = new HttpPost(url);
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpResponse response = httpclient.execute(httpPost);
Thanks,
Erik
...
httplib (now http.client) and friends all have conn.getresponse() and an HTTPResponse class, but the server-side operations of conn.getrequest() and an HTTPRequest class seem to be lacking.
I understand that BaseHTTPServer and BaseHTTPRequestHandler can perform this functionality, but they don't expose these methods for use outside of t...
Hi!
Can you advice me an HTTP/HTTPS proxy server component for Delphi 2009 or 2010 (i.e. it must support Unicode). I know about Indy, but maybe there are alternatives?
...
Hello everyone,
I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am using publishing portal template. I have a physical server with a single IP address, and I have set in DNS to map two domain names (server1.mycorp.com and server2.mycorp.com) to the same server/IP address.
My question is how to se...
Hi,
We really need to get our testers into using Fiddler to determin page size and site speed as part of their pre release testing process. I have sat with some of them to talk about fiddler but I'm looking for some easy to understand resources for learning Fiddler.
More importantly I think it might be ideal if I can find an easy to re...
Hi,
need help with this. Basically, our web server A (apache/perl) has to send an XML to some external server B (IIS/.NET) using POST with xml as its body. The company which owns server B provided us with their own .NET tool that takes XML file and POSTs it to B and then displays B's response.
The problem is that their tool works. But ...
I have a banner in actionscript 2, that posts to a URL, and gets a response back. The http header from that is then used to figure out if the posting was successful. This works like a charm i IE, but in Firefox and Safari, the Flash player shomehow interprets the HTTP header as a 0, no matter what the browser actually gets. My guess is t...
Hi, I used the YSlow Firefox add-on and it return the follow result:
-----------------------------------------------------------------------------------------
Grade D on Compress components with gzip
There are 3 plain text components that should be sent compressed
* http://localhost:63808/WebSite/BemVindo/
* http://localhost:63808/Web...
Hi, I used the YSlow Firefox add-on and it return the follow result:
Grade F on Add Expires headers
There are 8 static components without a far-future expiration date.
* (no expires) http://localhost:63808/WebSite/css/Global.css?...
* (no expires) http://localhost:63808/WebSite/css/BemVindo.css?...
* (no expires) http://localhost:6380...
I have a web app that I provide to small to medium-sized businesses as a service. Most of the support calls I get concerning speed issues end up being caused by problems on my clients' networks.
I would like to be able to point them to a specific web page that will run an x-minute test where multiple HTTP requests would be made via Jav...