Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6601

Re: Encoding a multipart/form-data for posting via HTTP

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From pavankanth.m@gmail.com
Newsgroups comp.lang.ruby
Subject Re: Encoding a multipart/form-data for posting via HTTP
Date Wed, 22 Aug 2012 14:26:26 -0700 (PDT)
Organization http://groups.google.com
Lines 11
Message-ID <c37ce64e-bfd6-485b-943d-759d30e0bde1@googlegroups.com> (permalink)
References <1110438895.032935.99640@o13g2000cwo.googlegroups.com>
NNTP-Posting-Host 64.201.246.50
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1345671121 11353 127.0.0.1 (22 Aug 2012 21:32:01 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Wed, 22 Aug 2012 21:32:01 +0000 (UTC)
In-Reply-To <1110438895.032935.99640@o13g2000cwo.googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=64.201.246.50; posting-account=TSgMFwkAAADizLzLVHy5Blc8eXzXE6PE
User-Agent G2/1.0
Xref csiph.com comp.lang.ruby:6601

Show key headers only | View raw


Hi Dema -

Can you post the snippet of code in which you have used the above encoding logic? 

I am writing a web application that needs to take a file upload from the user and upload it to a remote server. I can take input from user to server fine via file_field, but can't seem to work out the next step of uploading from server to remote

I am able to use HTTP:GET and download files from remote server and write to local disk, but not able to accomplish the opposite (local disk to remote server)


Thanks in advance.
Pavan

Back to comp.lang.ruby | Previous | Next | Find similar


Thread

Re: Encoding a multipart/form-data for posting via HTTP pavankanth.m@gmail.com - 2012-08-22 14:26 -0700

csiph-web