httprequest

Use json body in Soap envelope when sending to WCF service

Hello, I need to interface with a soap header of autentication with a json body. I Created the contract like this: [ServiceContract(Namespace = "http://tourico.com/webservices/hotelv3")] public interface IHotelMobileFlow { [OperationContract, WebInvoke( BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessa...

How to force a program to wait until an HTTP request is finished in JavaScript?

Hello, Is there a way in JavaScript to send an HTTP request to an HTTP server and wait until the server responds with a reply? I want my program to wait until the server replies and not to execute any other command that is after this request. If the HTTP server is down I want the HTTP request to be repeated after a timeout until the ser...

examples/tutorials iPhone post/upload request ?

I am doing some uploading stuff in iphone this time. This is absolutely first time for me. I have found some useful links and answers by googling and finding them on stackoverflow. And I was able to upload an image by the following code : NSData *imageData = UIImageJPEGRepresentation(imageView.image, 90); NSString *urlString = @"s...

Google Geocoding API request_denied

I am trying to geocode a batch of around 400 addresses using the Google Geocoding API through my rails app. In one of my controllers I have these lines require "net/http" require "uri" uri = URI.parse("http://maps.googleapis.com/maps/api/geocode/json?") response = Net::HTTP.post_form(uri, {"address" => '5032-forbes-ave', 'sensor' => '...

Spring 3.0 HEAD Requests

Hi recently we moved to spring 3.0 Controller handling like this: @Controller public class MyController { @RequestMapping(method = RequestMethod.POST) protected String onSubmit ( Form form, Errors errors) { // handle POST } @RequestMapping(method = RequestMethod.GET) protected void getForm ( Form form ) { ...

[Android] how to get the redirected page html in hotspot

I am using Android to develop an application. I connected to hotspot, after then, I sent http request to the "http://www.google.com" web page using HttpURLConnection or HttpClient. It should not response, because the connection is not made yet, so it will be redirected to authentication page ot the hotspot. I wish to get the authentica...

I want to trigger a http request when my app is in background

I want to set a alarm in the mean while when app goes background,Alarm should keep on running,When the alarm time expires,I want trigger a http request.Is that possible? If so should I use ASIHttprequest? If I use ASIHttprequest will my app will be rejected? ...

IIS Request Timeout on long ASP.NET operation

I am experiencing a request timeout from IIS when I run a long operation. Behind the scene my ASP.NET application is processing data, but the number of records being processed is great, and thus the operation is taking a long time. However, I think IIS times out the session. Is this a problem with IIS or ASP.NET session? Thanks in adv...

What is the Blackberry PlayBook's user agent?

What is the User-Agent string for the Blackberry PlayBook's web browser? ...

Responding to HTTP POST

I'm not sure if I'm asking the right question. We have a web app that we're trying to have a 3rd party POST to. We're creating a special landing page for them to which they can submit the data we need via POST. I'm not sure how to respond to their request, which I assume I handle as an incoming HttpRequest. Do I process their data ...

WSGI request and response wrappers

I'm looking for WSGI request and response wrappers for having a more convenient interface than the plain WSGI environ and start_response callback. I want something like WebOb or Werkzeug. But I don't like WebOb's PHP-like usage of GET and POST for parameter dictionaries, because HTTP is not limited to GET and POST and the distinction is ...

No response from web page

I have a web page where I redirect the user to if I see that IP is not valid. I want that user's browser will get no response but kept into waiting state, but I also want that my server thread is not blocked for that request. So the idea was that server will response quickly but the user' browser will put into waiting loop to discourage ...

php HttpRequests until the response is available with loading bar

Hello there! try { $r->send (); echo $r->getResponseBody(); } catch (HttpException $ex) { echo 'Message: ' .$ex->getMessage(); echo "<h5>No Resutls provided from blah blah for this domain name</h5> </div>"; } I use the HTTPRequest method to do requests to a server that I have im...

How we can check the information sent to server in a client request?

What are the information sent to server in a client request?How can we check those information? I mean can we view those information(Is there any way to check)? ...

How to get the client IP address inside struts2 action method?

Is there a way to get the client's IP address inside an struts2 action method? I have implemented both SesionAware and RequestAware interfaces, but these two inject only the session and request maps. ...

parsing search engine keywords

Hello everyone! I am trying to find the most effective way to parse my System.Web.HTTPRequest.UrlReferrer to find the search term that was used to drive the visitor to my site assuming they arrived at my site via a search engine results page. I am thinking (hoping) I'd use the HttpUtility.ParseQueryString method, but my problem comes i...

HttpRiot other linker flags issue

Hi everyone, i'm developing a game which already uses httpRiot framework to communicate with a server. Now i'm also trying to add an ad-mob library but i'm getting issues with the other linked flags, if I put the -all_load flag my ad-mob service crashes, and if I take it off HttpRiot crashes, anyone knows if there is a way to make HttpR...

Unable to manipulate string

In my website i have a script that return the current song that playing from my shoutcast server in a format of: "artist-track", what i want to do is to take that string and split it to 2 strings: artist and track, in order to do that i wrapped the script in server tag like this: <div id="nowPlaying" runat="server"> <script type="tex...

HTTP request with post

Hello. How can I make http request and send some data via post? I can do "get" request but have no idea how to make "post" one. C# ...

Preventing upload of large files in ASP.NET 4.0

We'd like to restrict the maximum upload file size in our web site. We've already set the appropriate limits in our web.config. The problem we're encountering is if a really large file (1 GB, for example) is uploaded, the entire file is uploaded before a server-side error is generated, and the type of the error is different whether the...