http

PHP Validation - passing http POST values forwards to a 3rd party checkout

I don't know whether this is possible, I can't seem to find any other help guides so this may not be possible... I have a checkout page which POSTs a load of variables forwards to a 3rd party payment processor (WorldPay). I want to know if it is possible to put a PHP script of some sort inbetween the two pages for validation purposes. ...

NSHTTPURLResponse statusCode is returning zero when it should be 401

Just doing a normal HTTP post with a NSMutableURLRequest and sendSynchronousRequest. But the NSHTTPURLResponse object I pass in has a statusCode of zero after the call. I get this error: Error Domain=NSURLErrorDomain Code=-1012 UserInfo=0x4d3b3c0 "Operation could not be completed. (NSURLErrorDomain error -1012.)" but no status code. ...

htaccess mod_rewrite

I'm trying to put something with this, whenever I go to a page like: www.site.com/character.php?id=3 I want the mod rewrite to change it to: www.site.com/character/Jim_Carrey Which of course, the ID is the row of the character name... For that kind of example... I've tried to work with it, but don't seem to get most of the productio...

is a query string with a / in it valid?

Due to a miscommunication with an affiliate partner we're working with the URL they call on our server has been mixed up. This is the URL they are supposed to call on our server : /AAAAAAAA/?b=CCCCCCC unfotunately it was implemented in their system as this ?b=CCCCCCC/AAAAAAA I can easily parse out the components, but I'm worried...

What is the difference between HTTP and REST?

After reading a lot about the differences between REST and SOAP, I got the impression that REST is just another word for HTTP. Can someone explain what functionality REST adds to HTTP? Note: I'm not looking for a comparison of REST versus SOAP. Update: Thanks for your answers. Now it has become clear to me that REST is just a set of ru...

Use PHP script for "click" on link

Hi, I am solving an issue that I cannot figure out. I need to login and click repeteadly (thousand of times) on the specific link to create some load. I know I should use HTTP/PHP for that but do not know how to solve the login? My next idea was to use some packet sniffer and re-send the requests..but will it work when I would close the ...

Why doesn't Firefox redownload images already on a page?

Hello, i just read this article : https://developer.mozilla.org/en/HTTP_Caching_FAQ There's a firefox behavior (and some other browsers i guess) i'd like to understand : if i take any webpage and try to insert the same image multiple times in javascript, the image is only downloaded ONCE even if i specifiy all needed headers to say "do...

Binary $_POSTed filedata gets messed up

Hi, I am currently testing out the new client side resizing of SWFupload ( http://demo.swfupload.org/v250beta2/resizedemo/index.php ) It resizes the image on the client via flash before it gets uploaded. However, it sends it as a normal POST request with the image data as a binary string / application/octet-stream. I am able to acces...

How to change the default HTTP OPTIONS parameters in Java

My java snippet looks like: ... String type = "text/plain;charset=UTF-8"; URL url = new URL("http://xxx/"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("OPTIONS"); conn.setRequestProperty("Content-Type", type); ... When I sniff what this sends it sends a OPTIONS /...

Prevent an HTTP client from hitting a server with cache (iphone)

Ok, I'm confused. I'm trying to send back the magic headers from my server that will prevent a client from hitting the server again until a resource is stale. I understand how ETag or Last-Modified works (Validation) - the client will ALWAYS still hit the server, and the server needs to validate the date or etag against the current val...

Can I force NSURLConnection to load from cache?

I had considered writing a custom url cache, but it seems that NSURLCache is supposed to support a disk cache. I'd like to have my iphone app use cached responses without hitting the server at all until the resource becomes stale (as determined by the headers I send back from the server). Do I have to call something fancy with NSURLCon...

http/http traffic analyzer

i would like to develop a c++ application that would list all url accessed with its response time within the pc. this probably would be transparent to the user, so it would be a dll. can anyone gve me some sample codes or tutorials on th said matter. or any tips and suggestion?!.. thanks alot:)) ...

Post soap request and display response in vb2008.net?

I'm new to object oriented programming so I just need help on the basics here. I have an xml string that I've tested in a separate program and is able to communicate with my soap server correctly. I'm trying to add a request in Visual Basic 2008 to essentially take the soap string, send it as an http POST, and display the xml that is r...

HTTP Error Codes - Is there a sites with pages/sites that give (produce) the various error codes?

Hi, For testing purposes it would be nice to have a site that has links that align with the various HTTP error codes (or at least the main ones), that is they will produce the associated error page. For example a link that will produce a 501 etc. (I am NOT looking for a list of HTTP error codes) Is there a sites with pages/sites that...

Is there any way I could get this behavior with cURL?

I am testing one of my server implementations and was wondering if I could make curl get embedded content? I mean, when a browser loads a page, it downloads all associated content too... Can someone please tell me how to do this with curl? I don't mind if it dumps even the binary data onto the terminal... I am trying to benchmark my ser...

How to send a HTTP Header request rather than HTTP URL in Python.

I'm doing Oauth, and Linkedin needs me to send a "header" request instead of URL request (I have no idea what that means). This is what someone says on Google: If the library you are using isn't using HTTP headers for the authorization, you're not going to be able to access protected resources. Most OAuth libraries have an o...

HTTP proxy server written in java

Hi, could anyone recommend a good open source http proxy server written in java. I've found some simple proxy servers consisting of just one java file but they don't always work. In particular there I need to run a java applet communicating with the server through proxy. The communication fails with simple proxies. I tried squid and it w...

Get all URLs accessed, with response times?

Can anyone help me how to get (or log) all URLs accessed by web browsers in a computer. Together with its response time? Note: visual C++ will be the Programming language to be use and this will run under windows platform. ...

http request delay in local network

there 2 computers in a local network, 192.168.1.101 & 192.168.1.102 101 is running a simple web server on windows xp, 102 running windows 7. if i run a client program in 101 (same machine as the web server) and make a GET request, it takes 0.2 seconds to complete the request. if i take run the same client program from 102, it takes 1....

Picking the right HTTP return code for future resources

Hi, I'm currently designing a RESTful API and are not sure which HTTP code is the right choice for a distinct scenario: Clients can upload entities by using PUT to a pre-known URI. Then, the entity is processed on the server which could take some time (i.e. transcoding/processing). If this is done, the resource is available under the U...