post

Making HTTP post request (with an input type="file") from within Maven, using command line parameters if possible

Dear All: I would like to convert this bash script: #!/bin/bash if ! [ $# == 2 ]; then echo Usage: update-module admin-password module-file exit 1 fi if ! [ -f $2 ]; then echo Error: module file $2 does not exist exit 1 fi curl -c /tmp/cookie.txt -d uname=admin -d pw=${1} http://localhost:8080/openmrs/loginServlet curl -b /...

Facebook offline wall post action link is not working.....

Hi i created a new application in facebook with offline access permission. Application is working fine when i posting the wall information action link parameter is not shown How to solve it.... And one more question when i post information some of the id's were not posted, exception error handling shows the message: FacebookErrorRespon...

Sending POST data without form

Can i send for example a string or another piece of information to another .php file without it being exposed [thus not by GET but by POST conform to what i know] without using a form? ...

Rails 3 Redirect using POST

Is it possible to redirect from one controller to another using POST request? redirect_to supports only GET. I found something called "post_via_redirect", but it seems that it was deprecated in Rails 3. ...

Post Twitter message from iPhone app with OAuth

Hi, How can I post a message on Twitter from my app using OAuth authentication? I'd like to post an invariable message with a variable link... How can I do this? Any source? Any tutorials? Thanks a lot! ...

need to read data from a log... tail, grep and inotifywait

I have data on one server that comes into a continuously growing log file. I need to tail that log and grep some information and then send that to another server for php to insert into a database. The computer that has the log can't be allowed access to the database. I tried this so far but my syntax on the bash command is wrong and I ca...

Rails: Route for :collection that is both GET *and* POST?

I have a route that currently looks like this: map.resources :regions, :collection => {:select_for_payroll => :get}, has_one => :payroll How can I make the :select_for_payroll take both GET and POST? Many thanks! MrM ...

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...

HTTP POST to a REST Service through PHP

Hi guys, I have a webservice..just say example.com. I need to do a HTTP POST to call this web service in PHP and send data to this web service. The data I'm posting is from a form so is available in variables. I have read that this might be a way to do it, but I'm not sure, so any pointers in the right direction would be appreciated. ...

Where is the problem in this prototype [ajax.Request] code ?

function sendM() { new Ajax.Request("sendm.html", { method: 'post', postBody: 'text='+ $F('text') +'&sub='+ $F('subject') +'&sname='+ $F('name') +'&sfmail='+ $F('email') +'to='+ $F('to'), onLoading:showLoad, onComplete: showResponse }); } function showLoad(){ $('dresult').innerHTML= "מבצע את הפעולה &nbsp;&nbsp;<br /><br />";...

Not able to post using Blogger API

When i post using Blogger API it does not respond with any error but it also does not post to the specific feed or blog. But it respond with http code '0'. Kindly help me debug the code. Following is my code: $authSubHeader = self::getAuthHeader("POST", $url, $token); $xml = "<entry xmlns='http://www.w3.org/2005/Atom'&gt; ...

How to Get Model Data from Partial View?

I am creating a site in which I utilize partial views to display various bits of data about a single Model. Here is a bit of the HTML. (Note, all of these are contained within a single form and the Index page that these partials are rendered in is strongly typed to the main model. The main model contains various lists of data.) <div id=...

How do I balance POST/GET PHP pages for a database message board with SEO-minded static HTML?

Thanks in advance for whoever can help with this question. I have build a messageboard-database using html forms, PHP, and my SQL. The website allows people to post topics and then post messages for each topic. They can then vote up or down on each message. Right now, I do all that through a single PHP page and I use POST. When I u...

PDF in response to POST - android browsers perform additional GET and save that as file

My Django view generates a PDF via pycairo in response to a POST (I'm not redirecting in response to the POST). When I POST using desktop browsers I can save and/or view the PDF using Adobe Reader or Document Viewer. However, when I POST via my android browsers the Adobe PDF Reader and the ThinkFree viewers both report the file as corrup...

iPhone POST request truncates string

Hello all, When I try to send out a POST request to a specific site the string I try to send gets cut off. When I check the length of the string in Xcode it is about 55000 characters long. The amount of characters received on the site is about 4500. This is my code: -(IBAction)convert { NSString *rosterText = [webView stringByEvaluat...

how to parse HTTP POST(file upload) stream?

I am using actionscript engine to upload a file, the engine will select the file and send the file over network thru HTTP POST command, the document says the POST message is like: POST /handler.cfm HTTP/1.1 Accept: text/* Content-Type: multipart/form-data; boundary=----------Ij5ae0ae0KM7GI3KM7ei4cH2ei4gL6 User-Agent: Shockwave...

Call POST method in RESTFul Web service

Hello Everyone, I want to create a sample RESTful web service in java which involves all the four CRUD operations and I deployed it in tomcat. I used JAX-RS (Jersey) library to implement this in java. As of now , I can call the GET method to retrieve the list of records and display it. But I don know how to call the POST, PUT and DELETE...

Sending data through post method to an iframe

I have an iframe which is pointing to a moodle site. I need to pass to it my username and password, so that when the iframe is loaded, I am automatically logged in on moodle. So I have something like this: <div id="iframe" style="width:787px; height:700px;"> <iframe id="iframeCon" src ="http://www.somesite.net/moodle/login/index.php" wi...

can't make jquery SWFUpload post data

hello, i'm using django and i've the following template for uploading files using SWFUpload the sxf object show, the download prosses seam to be working but wen the progress bar reatch 100% nothing append next, there is no post data receved by the sever. did someone know where i'm wrong? debug: SWF DEBUG: Event: uploadError : IO Error ...

Help me converting this CURL to a Post method in Rails

I am trying to post an XML to an API which returns me an XML. I successfully did that by executing a simple CURL command curl "http://my.server.com/api/identity/emails_from_ids" --proxy dvaic.snv.fex:80 -d "<users><id>3434</id></users>" -X POST -H 'Content-Type: application/xml' -u admin:admin The above command executes successfull...