Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 838823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:22:02+00:00 2026-05-15T05:22:02+00:00

this is my code and I don’t know how to debug it because I

  • 0

this is my code and I don’t know how to debug it because I just get an “internal server error”:

I am trying to HTTP POST to an external ASPX:

  def upload
    uri = 'https://api.postalmethods.com/2009-02-26/PostalWS.asmx' #postalmethods URI

    #https://api.postalmethods.com/2009-02-26/PostalWS.asmx?op=UploadFile
    #http://www.postalmethods.com/method/2009-02-26/UploadFile

    @postalcard = Postalcard.find(:last)
    #Username=string&Password=string&MyFileName=string&FileBinaryData=string&FileBinaryData=string&Permissions=string&Description=string&Overwrite=string
    filename = @postalcard.postalimage.original_filename
    filebinarydata = File.open("#{@postalcard.postalimage.path}",'rb')

    body = "Username=me&Password=sekret&MyFileName=#{filename}&FileBinaryData=#{filebinarydata}"

    @response = RestClient.post(uri,
                  body, #body as string
                  {"Content-Type" => 'application/x-www-form-urlencoded',
                   "Content-Length" => @postalcard.postalimage.size} # end headers
                 ) #close arguments to Restclient.post
  end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:22:03+00:00Added an answer on May 15, 2026 at 5:22 am

    Turns on PostalMethods had an error and bug on their HTTP POST.

    It only takes SOAP so I would need Savon.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 529k
  • Answers 529k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here is the logic... Try implementing. On starting timer //in… May 16, 2026 at 11:19 pm
  • Editorial Team
    Editorial Team added an answer INSERT INTO ProductDefinition (ProdID, Definition, Desc) SELECT xxx, Definition, Desc… May 16, 2026 at 11:19 pm
  • Editorial Team
    Editorial Team added an answer I have created bug request and you are welcome to… May 16, 2026 at 11:19 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

What's happening in this code? I don't get this code. Looks like it's performing
I don't understand why, but this code gives me a JavaScript error: <script type=text/javascript>
Why this code don't work,when i want run this code vwd 2008 express show
I want do replace why this code don't work? MessageBox.Show( Regex.Replace(Regex.Escape(@c:\www\html), Regex.Escape(@c:\www\), , RegexOptions.IgnoreCase));
can anyone tell me why this code don't work: $q = $_GET['q']; // Load
My code is here $(a[href=$.jqURL.url()]).hide(); $.jqURL.url() return current page url. But this code don't
How to make this code work? I don't see how I can reach div
I want to insert a bezier spline into my Canvas by this code <mx:Canvas
i have problem use link_to_remote link_to_remote document example say link_to_remote Delete this post, :update
I've just got an error message that was somewhat unexpected: Error Message: Could not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.