The system I'm developing is comprised of a jetty server (v6.1.2rc4) and a php frontend that sends http requests to jetty via curl_exec.
The server and the client are on the same machine.
The requests I send can be both POSTs and GETs, I get the same error for either which is:
Failed to connect to 127.0.0.1: Unknown error 99
This is ...
How would you go to create a streaming API with Node? just like the Twitter streaming API.
What I want to do ultimately is get the first update from the FriendFeed api, and stream when a new one becomes available (if the id is different), and later on expose it as a web service so I can use it with WebSockets on my website :).
So far I...
What is the best erlang library for processing http requests and responses from within an erlang application? I have taken a look at inets but as a standalone application, it seems more like a replacement for curl.
I would like to access external APIs from within the erlang application so would need to parse responses and be able to ma...
Hi, this is my code and I don't know how to debug it because I just get an "internal server error":
I am trying to HTTP POST to an external ASPX:
def upload
uri = 'https://api.postalmethods.com/2009-02-26/PostalWS.asmx' #postalmethods URI
#https://api.postalmethods.com/2009-02-26/PostalWS.asmx?op=UploadFile
#http://www.p...
Is there any programmable/customizable Open Source Proxy server which allows me to do this:
For certain pages which get an authentication page which always looks the same (it's custom, not the standard proxy authentication stuff) I can hook up a script which sends the login credentials (via POST).
The reason is to work around a nasty ...
I need to check that our visitors are using HTTPS. In BasePage I check if the request is coming via HTTPS. If it's not, I redirect back with HTTPS. However, when someone comes to the site and this function is used, I get the error:
System.Web.HttpException: Server
cannot append header after HTTP
headers have been sent. at
Sys...
What is the default http user agent header sent by the .NET SoapClient class?
...
How do I perform an HTTP request and sign it with a X.509 certificate using Java?
I usually program in C#. Now, what I would like to do is something similar to the following, only in Java:
private HttpWebRequest CreateRequest(Uri uri, X509Certificate2 cert)
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);...
Hi everyone !!
I am trying to sniff HTTP data through libpcap and get all the http contents (header+payload) after processing the TCP payload.
As per my discussion at http://stackoverflow.com/questions/2905430/writing-an-http-sniffer-or-any-other-application-level-sniffer , I am facing problems due to fragmentation - I need to reconstr...
..also, are there limitations between implementation technologies and the devices/languages that can access those API methods - as opposed to the standard HTTP API methods where all devices/languages can access HTTP?
...
I wish to send multiple requests to the server, simultaneously. The problem statement will be:
Read a text file containing multiple URL’s.
Open each URL in the web browser.
Collect the Cookie information for each call, and store it to a file.
Send another call: http://myserver.com:1111/cookie?out=text
Store the output (body text) o...
Hello
could somebody give me a start on how to parse the HTTP-protocol with scala 2.8 packrat-parsing?
I need to parse attached examplary HTTP Response into
ResponseStatusCode:Int
Headers:List[(String,String)]
Body: String, Array[Byte], CharBuffer
or whatever
Short examplary usage of a Packrat-Parser very much appreciated. Thanks!
...
I have a text file on my server. I want to open the text file from my Android App and then display the text in a TextView. I cannot find any examples of how to do a basic connection to a server and feed the data into a String.
Any help you can provide would be appreciated.
...
I am trying to write a PHP script that will get the source code of a page in my Amazon account. However, to reach that page, I must be logged in. From what I understand, I should be able to accomplish this by posting the correct request headers, and then capturing the HTML response. Is that correct? If so, I'd really appreciate it if som...
I am trying to use DefaultHttpClient and HttpGet to make a request to a web service. Unfortunately the web service URL contains illegal characters such as { (ex: domain.com/service/{username}). It's obvious that the web service naming isn't well written but I can't change it.
When I do HttpGet(url), I get that I have an illegal characte...
Hello,
I am collecting as information as possible about http(s) session attacks.
There is a plenty of information about existing attacks, but, i would like to know if some new breeds of attacks are now made possible either by security flaws in popular software or technologies or by new smarter security engineering.
Do you have some re...
I have two servlet: first servlet is similar to a client and creates an HttpURLConnection to call the second servlet.
I would like send a special error, formatted like a JSON object, so I call sendError method in this way:
response.sendError(code, "{json-object}")
But in the first servlet when I read error with getResponseMessage me...
Hi,
If compression is setup on tomcat, will it also compress data that is uploaded by the client - via browser/applet ?
...
In my project i have to send SMS via MBLOX XML interface to AUS mobile users. please send any reference document s post to me.
...
I have a website which processes orders from a Windows application. This works as follows:
User clicks "Order now" in the windows app
App uploads a file with POST to a PHP script
The script immediately calls the PHP mail() function (order is not stored in a db)
This works fine most of the time. However, sometimes a big delay occurs (...