httprequest

Spoofing HTTP-request Referrer from HTML?

Is there some secret and mystical way to change the value of my HTTP-request's referer, or at the very least, keep it from showing? Also, using a MitM page from another domain would not solve my issue, as you are now just submitting that other page's value. This is not browser specific, I would need to do this on the HTML level. The pr...

accessing http request before sending to server

I am trying to calculate md5 hash of a http reqest before sending it to server. For this I have to get the http request first. can any body help me? ...

ASP.Net, Silverlight: callback from HttpHandler

Hello, On client i use System.Net.WebClient object to send data to certain HttpHandler. I make a call of WebClient.OpenWriteAsync. HttpHandler uses context.Response.Write to write some data to be delivered to client. How can i receive this data ? ...

ASP.NET: Reques cookies have null for domain?

When I examine my HttpContext.Current.Request.Cookies collection, some of my cookies have null for their Domain member. Why/when is a Domain null? ...

how to loop through httprequest post variables in python

How can you loop through the HttpRequest post variables in Django? I have for k,v in request.POST: print k,v which is not working properly. Thanks! ...

How to use same cookies in multiple request in python?

I am using this code: def req(url, postfields): proxy_support = urllib2.ProxyHandler({"http" : "127.0.0.1:8118"}) opener = urllib2.build_opener(proxy_support) opener.addheaders = [('User-agent', 'Mozilla/5.0')] return opener.open(url).read() To make a simple http get request (using tor as proxy). Now I would like to ...

Load image from url in Android, only if small

I'm using BitmapFactory.decodeStream to load an image from a url in Android. I want to only download images below a certain size, and I'm currently using getContentLength to check this. However, I'm told that getContentLength doesn't always provide the size of the file, and in those cases I would like to stop the download as soon as I ...

"Request is not available in this context" on Nested User Control

I have three objects: A Page which contains A User Control (A) which contains Another User Control (B) The scenario is an event in User Control A gets called, the Request object is still accessible here. But during that call, I attempt to call Request again through User Control B, User Control A's child class, and it starts throwing ...

Programmatically logging in to a website

How does one log in to a website programmatically? I just want to check that the provided username and password of a website is correct or not. Thanks. ...

python http request with token

hi, how and with which python library is it possible to make an httprequest (https) with a user:password or a token? basically the equivalent to curl -u user:pwd https://www.mysite.com/ thank you ...

PHP HttpRequest::setHeaders() converting my header names to camel case

I need to send the following header with my httpRequest: 'X-ABC-Reco-Token'=>'a0d15977'; I have the following code: $array = array("X-ABC-Reco-Token"=>$token); $this->request->setHeaders($array); echo var_dump($this->request->getHeaders()); however, this is the output I get: "X-Abc-Reco-Token"=...

logged in to PureVolume.com programatically !!

I have tried so many ways but failed to logged in purevolume.com programatically!!! login URL : http://www.purevolume.com/login can anybody give it a try and provide sample code to achieve this. ...

Compress an HTTP Request in java

Hello, I want to compress my HTTP request before sending it in java. how to do please ? I'm using JBoss4.2 as a Server ...

c# stop a streamreader after a few seconds. Is this possible?

I have web request and i read information with streamreader. I want to stop after this streamreader after 15 seconds later. Because sometimes reading process takes more time but sometimes it goes well. If reading process takes time more then 15 seconds how can i stop it? I am open all ideas. ...

Android ThreadSafeClientConnManager Timeouts?

I'm using a ThreadSafeClientConnManager to perform simultaneous requests in background threads on Android, set up with: HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, HTTP.DEFAULT_CONTENT_CHARSET); HttpProtocolParams.setUseExpectContinu...

receiving X509 client certificates in web requests

I am trying to send an X509Certificate from an Http Handler to a web service that will receive and read the certificate to authenticate the user. I know the certificate is sending fine; I have a tester that lets me look at the HttpWebRequest before sending, and the ClientCertificates property shows that it has a certificate attached. (e...

How can I validate request arguments in SimpleFormController - Spring MVC

Hi. I want handle update operation using SimpleFormController. URL to this controller looks as follow: http://example.com/updatesomething.html?id=42 I wonder how to validate on the begining if object with the given id (42) exists, because I want display 404 error page when id is incorrect and stop processing. Thanks in advance f...

How to handle asynchronous Java calls from an AJAX call

I want to make an AJAX call to my Java webapp. The Java webapp will in turn make an asynchronous return call elsewhere. The result of that call will then be returned as the result of AJAX request. The crux of my question is what would I do with the HttpRequest whilst I'm waiting for the second call to return? Do I just block and wait ...

Cause of seemingly random crashes in wininet.dll?

I am getting crashes deep in wininet.dll. It crashed trying to read the zero memory location in HTTP_REQUEST_HANDLE_OBJECT::ReleaseConnection Is this a bug in the actual DLL and not caused by improper usage? wininet!HTTP_REQUEST_HANDLE_OBJECT::ReleaseConnection+0x60 wininet!HTTP_REQUEST_HANDLE_OBJECT::CloseConnection+0x84 winin...

Need Tutorials for Writing a Login API

Hey, I'm pretty new to PHP, but I've got a site up and running with a full login/registration script, etc... I have found ample tutorials on sending data via HttpRequest and getting XML or JSON data back--so I'm pretty comfortable with that. I can't seem to find any information or tutorials on how to write the script that handles tho...