httprequest

How to emulate a real http request via cfhttp?

Hi, I need to emulate a real http request via cfhttp. I was getting rss feed with ColdFusion, but tonight they started to block my request and send an index page in response instead of rss fead. I added useragent for cfhttp, but it doesn't help. Opera, Firefox and Chrome open feed correctly from the same computer. ...

Using jQuery, how do I way attach a string array as a http parameter to a http request?

I have a spring controller with a request mapping as follows @RequestMapping("/downloadSelected") public void downloadSelected(@RequestParam String[] ids) { // retrieve the file and write it to the http response outputstream } I have an html table of objects which for every row has a checkbox with the id of the object as the valu...

«HTTP::Message content must be bytes» error when trying to post

I have the following code: ... sub setImage { my $self=shift; my $filename=shift; unless(-r $filename) { warn "File $filename not found"; return; } my $imgn=shift; my $operation=&URI::Escape::uri_escape_utf8( (shift) ? "Удалить! (Delete)" : "Сохранить! (Store)"); my $FH=&::File::open($...

# character seems to cause problems with a get Request

I have a queryString that I pass to a servlet's doGet() method that looks like this: count=9&preId0=-99&objId0=-99&preId1=-99&objId1=-99&preId2=69&objId2=16#!78&preId3=-99&objId3=-99&preId4=-99&objId4=-99&preId5=-99&objId5=-99&preId6=-99&objId6=-99&preId7=-99&objId7=-99&preId8=-99&objId8=-99 After and including the # everything is ...

Type Mismatch on Http request from c#

I'm getting redirected to an error page it seems when I try to request info from this page and write it to a txt file. It says 'Sorry, Type Mismatch.' How can I get this info. namespace webscrape { class Program { [STAThread] static void Main(string[] args) { try { // Modify as a...

Android:Email: E/AbstractSyncService( 529): java.lang.NullPointerException occurs every time

Hi, I am working on Active sync in Android. I get "java.lang.NullPointerException" every time. Logs shows: Uncaught exception in EasSyncService java.lang.NullPointerException org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:453) at org.apache.http.impl.client.AbstractHttpClient.execute(Abstract...

PHP post request to retrieve JSON

I'm trying to write some simple php code that will make a post request and then retrieve a JSON result from the server. It seemed simple to me, but the below code simply doesn't open a connection. $port = 2057; $path = "/validate/"; $request = "value1=somevalue&value2=somevalue&value3=somevalue"; $http_request = "POST $path HTTP/1.0\...

Why is Request not available for my PDF request?

We're trying to create a .NET aspx page that will have a PDF within it. Doing this by hardcoding it is easy. <object height="1250px" width="100%" type="application/pdf" data="our.pdf"> <param value="our.pdf" name="src" /> <param value="transparent" name="wmode" /> </object> (don't worry too much about the transparent thing......

Flash - HTTP requests won't work on localhost.

First off, I'm trying to fix something that I didn't build to begin with and the guy who's project it was assures me it was working fine when he left, although a version I haven't touched since he left seems to have the same issues. I'm also a bit new to programming in general so let me know if I've left out important information in my f...

Can I have Sinatra / Rack not read the entire request body into memory?

Say I have a Sinatra route ala: put '/data' do request.body.read # ... end It appears that the entire request.body is read into memory. Is there a way to consume the body as it comes into the system, rather than having it all buffered in Rack/Sinatra beforehand? I see I can do this to read the body in parts, but the entire body s...

Reading HttpRequest Body in REST WCF

Hi All, I got a REST WCF Service running in .net 4 and I've tested the web service it is working and accepting HttpRequest I make to it. But I ran into a problem trying to access the HttpRequest body within the web service. I've tried sending random sizes of data appended on the HttpRequest using both Fiddler and my WinForm app and I ca...

Is it possible to modify the content of HttpRequest POST in an IIS HttpModule?

Hi, I need to modify the content of certain HttpRequests (SSAS connection strings) in IIS. Basically, I need to add an element to the SOAP contained in the request. My approach so far has been to add a Filter to the HttpRequest, and perform the change in the filter's Read method. As far as I can tell, though, Read is never being execut...

Protect HTTP request from being called by others

Hi, I have an Android application from which I want to upload some data to a database on my web server. As the MySql java library has a size of about 5 mb, I don't want to include it with the application. So I'll make a HTTP request for a php script and send the data with the URL as parameters. How do I make sure that only I can call th...

Directing a request in IIS

I have a set of web services written in classic asp. I want to convert them to asp.net, but this will be a long process. I want to convert a couple functions at a time, and use some sort of routing mechanism to select which version the requests go to (classic asp, or asp.net). Changing the url used to access the web service and functio...

How do you create an asynchronous HTTP request in JAVA?

I'm fairly new to Java, so this may seem obvious to some. I've worked a lot with ActionScript, which is very much event based and I love that. I recently tried to write a small bit of Java code that does a POST request, but I've been faced with the problem that it's a synchronous request, so the code execution waits for the request to co...

Can I render html from ASP.NET Page objects outside ASP.NET applications?

I'm not talking about hosting ASP.NET with the 'ApplicationHost' class. For example, if I create a Console application, create a valid HttpContext object and pass it to the ProcessRequest of a custom Page object, will it fill the HttpReponse html like if it was running inside ASP.NET? ...

how to pass a value to jQuery Ajax success-handler

Give the following Ajax call in jQuery: { . . . , getSomeData: function(args, myUrl, foo) { $.ajax( { type: "GET", url: myUrl, data: args, async: true, dataType: 'json', success: myHandler }); }, myHandler: function (data, textStatus, oHTTP, foo){ .....

iPhone HTTP Request Security

hey I don't know much about these type of things so please excuse the NOOBness I am sending a HTTP Request to a server and I want the server to know that the request is authentic, so I have a p12 with a certificate and key (pre-made by the server) bundled with my application that I extract and use as a credential when I send my request...

Local Storage vs Cookies

I want to reduce load times on my websites by moving all cookies into local storage since they seem to have the same functionality. Is there any pros/cons (especially performance-wise) in using local storage to replace cookie functionality except for the obvious compatibility issues? ...

Encryption on Passwords provided through Post Requests

I've been learning about networks and have been logging the post requests I make in firefox using LiveHttpHeaders. What is interesting is that when I log into sites, with or without https, the Post request which gets submitted includes my username and password in plain text! Isn't this dangerous in the case that a system administrator ke...