Jump to content
We've recently updated our Privacy Statement, available here ×

taggart

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by taggart

  1. I was able to figure this out. The problem was in fact my post header. It needed to be: PostHeaders={'Content-type': 'application/repository.file+json', 'accept': 'application/json'} Everything else I showed in my question was correct.
  2. I am trying to send a simple txt file to the JasperResports server (5.6.0 release) using a POST/json request. I keep getting back client 400 error after the post. I have read the docs but cannot figure out what is wrong. If someone could post the exact headers and json content for a sample request to send a small txt file, I would greatly appreciate it. One thing I cannot understand is if the post headers are correct. There is much discussion in http://community.jaspersoft.com/documentation/jasperreports-server-web-services-guide/v56/v2resources-service in the "Content Header Type" section but there are no concrete exampes so I am not sure what is supposed to be given for the header for say a "txt" file (I am just using the vanilla 'Content-type': 'application/json' but I susplect this migh be wrong). Below are my headers and content (I have edited it for readability and the content is uu64 encoded) (sorry, I had to post the following as an image because my question was being flagged as spam):
  3. @rafkacz1 -- thanks so much - I spent 4 hours on this today and you saved my...
  4. @al881: I have been fighting this problem for 3 days. There are a ton of references and "fixes" on the internet (see link below). Anyway, I JUST got this to work. Here is a reference to what I did. https://docs.google.com/document/d/1ydQMTmyA9Empozn63IVVGoDpSfa0udHnptdS4m1TViM/edit Good luck!
×
×
  • Create New...