http

Perl: Programatically set POST param using REST::Client module

I've built a REST Server and now I want to rapidly test it from a Perl Client, using REST::Client module. It works fine if I perform GET Request (explicitly setting parameters in the URL) but I can't figure out how to set those params in POST Requests. This is how my code looks like: #!/usr/bin/perl use strict; use warnings; use REST...

To remove conflict in http and https in IE I have done below given solution, please someone tell me is it Browser dependent?

<a href="//www.mydomain.com/" title="Commerce Pundit" target="_blank" class="normaltext-11pt-link">Om The Eternity</a> On click on the above link is browser dependent? will it create any problem in any browser in any case? is it good idea to avoid the mentioned conflict? ...

Google Chrome HTTP monitor (like HttpFox)

I am looking for an HTTP traffic monitor/sniffer (something like Firefox's HttpFox) for Google Chrome, for debugging/development purposes. It is the only thing preventing me from switching entirely to Chrome for web development. Is there one? ...

PHP cURL to POST works, but not when I POST without cURL - What am I missing?

Hi, I am in a situation where I cannot use PHP cURL module to POST my form data. I have found a great blog post showing how to POST without using cURL here: HTTP POST from PHP, without cURL Here's my problem though. When I attempt to send my POST request, the request hits the (other) server but the content (POST data) is not transmitte...

How to add content to an http request?

Hi, I have the following: $request="HTTP/1.0 200 OK Date: Sat, 04 Sep 2010 00:37:36 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=UTF-8 Server: gws X-XSS-Protection: 1; mode=block X-Cache: MISS from proxy.rstel.net X-Cache-Lookup: MISS from proxy.rstel.net:3128 Via: 1.0 proxy.rstel.net (squid/3.0.ST...

Why is RPC over HTTP a secutity problem?

I am currently reading on Web Services. There is a SOAP tutorial at http://www.w3schools.com/soap/soap_intro.asp . The following paragraph is from that page: "Today's applications communicate using Remote Procedure Calls (RPC) between objects like DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and ...

How does one send a message to an OpenID URL..?

Is there a standard method for sending a message (or a private link to where the message can be retrieved) to an OpenID URL or URL in general..? I would prefer a way to send a private link, but failing that, any kind of mechanism to send text to a (openID) URL will do.. The purpose is that the owner of the URL will then somehow be noti...

PUT Request not going through - what am i doing wrong?

I have a PUT request (same-domain) done with XHR and it does not get through (on Firebug, the icon loads and i get no data, no response). PUT http://hyveup.net/xvrelation/dev/api/ui/?section=texts&amp;action=add Host hyveup.net User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 Linux Mint/9 (Isadora) Fire...

Content-Length header and Internal Server Error

I have a PHP-driven website that uses output buffering, generates the entire page and spits out a couple of headers (Content-Type and Content-Length) before sending the actual page contents. This works fine on my local Apache server but as soon as I uploaded it to my web host (also Apache), it failed with a 500 Internal Server Error, wh...

I'm looking for a library that implements an HTTP proxy. Does it exist?

I need a native HTTP proxy library. Ideally, something that would let me specify the ports to listen on, and would call me back when requests arrive. Does such a thing exist? Ideally, it would work on Windows & Linux platforms. ...

SOAP-proxy in Scala - what do I need?

I'm trying to write a program in Scala, that will accept SOAP-requests, get the response from the real server (or read it from the local disc) and return the data to the original client. I'm new to the java/scala ecosystem, so I have no clue, what libraries to choose. I heard Scala's XML-handling is quite nice, so I don't know, whether ...

'Aborted' status in firebug Net panel with netcat proxy

Hi, For front-end debug purposes, I've set a netcat proxy in order to intercept HTTP requests, eg: $ mkfifo /tmp/backpipe $ while true; do nc -vv -l -k 12345 < /tmp/backpipe | tee -a requests.in | nc localhost 80 | tee -a requests.out > /tmp/backpipe; done It works great but, in firebug, when accessing my web application on port 1234...

What's the best way to implement HTTP Post chunked request on iPhone?

There's a really old thread from 2008 that mentioned NSUrlConnection is quite buggy and leaks a lot. Is this still the case? Is there any Cocoa Touch class that already implements the chunked upload or am I better off using the CF classes? ...

What's wrong with this gzip format?

I use the following python code to download web pages from servers with gzip compression: url = "http://www.v-gn.de/wbb/" import urllib2 request = urllib2.Request(url) request.add_header('Accept-encoding', 'gzip') response = urllib2.urlopen(request) content = response.read() response.close() import gzip from StringIO import StringIO ht...

HTTP :: where browser send request to get file, does he waiting for response or he send request for next file?

Hi, How HTTP request works:(if i have mistake, please write) user type in browser http://www.website.com the server send him html page with links to images+css+js files browser read html and where included images/css/js file send http request to get the file where browser send request to get file, does he waiting for response or he ...

Problem with HTTP Post in Android

Hello! I'm getting a problem making an HTTP POST in Android. The problem occur when the code is reading the response, it cant obtain the complete web page code I want to retrieve. I only retrieve a piece of the web. Here is the code: try { HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = n...

Caching URLs without Ad content

We want to cache the URLs typed in/visited by the user and we are trying to do this by logging all the http GET requests. We realized that there will be multiple GET requests from the same page (both for page content and ads). However, we want to cache only the primary GET. One idea is to cluster the GET requests in time and use the firs...

CFHTTPStream segmentation faul during NSRunLoop

I'm trying to assemble a toy application to interact with http servers via CoreFoundation. I'm not using NSURLConnection because I want to be able to specify a proxy different from the one set in the OSX System Preferences. My problem is that I wasn't able to find any working example and the Apple documentation do not provide a working ...

ruby HttpClient library closing socket after response with persistent connection?

Hi chaps, I'm using the HTTPClient gem (http://github.com/nahi/httpclient) for ruby, to post data to IIS 6.1. Even though both support HTTP 1.1 it seems to be closing the socket after each request made, rather than using persistent connections. I haven't added any flags to enable persistent connections (mainly because having poked about ...

Checking for proxy connection

What do i need to send to a proxy server (http or socks) that will tell me if it is connected to the host i specified it to connect to. ...