Hi,
I would like to reate a POST request to a given address, let it for example be
http://staging.myproject.com/products.xml?product[title]=TitleTest&product[content]=TestContent&product[price]=12.3&tags=aaa,bbb
for POST requests I've created an universal method:
private String postMethod(String url, HashMap<String, ...
Couldn't figure out why I'm getting Null pointer here : System.out.println(method.getStatusCode()); !?
method initialized and successfully executed!
Any ideas?
Sample code here. I'm using commons-httpclient-3.1.jar
PostMethod = new PostMethod(url);
LogInHelper.logRequest(httpClient, method);
try {
...
Im fairly new to this so please dont slam me down.
I'm trying to mock a Postmethod so that I can set the status it returns. For instance I want to set my PostMethod to 200.
The reason for doing this is I am trying to mock a computer without an internet connection
Thanks in advance
...
Hi All,
I'm looking to make an HTTP post request given the raw data that I have. I've spent a while looking for the solution, made a handful of attempts and I'm looking for a little bit of help. The PHP code for what I'm looking to do looks like this:
<?
$url="http://localhost:3000";
$postdata="<?xml version=\"1.0\" encoding=\"UTF-8\"?...
i want to login to gmail using asp.net ,however when i use the http post method with ....
it returns your browser is not accepting cookies?...and in the internet explorer its sign's in ..whats the problem n what to look for ...And if any one has code how to login to gmail ...I will be very thankfull.
...