- Main Page
- Data Structures
- Files

- File List
- Globals

# samples/jsget.c File Reference

`#include <jasperserver.h>`

Go to the source code of this file.

## Functions
void | get_resource (char *resource, char *outfile)
| Sample function to download a resource from the repository.
int | main (int argc, char **argv)
## Variables
const char | server [] = "http://127.0.0.1:8080/jasperserver/services/repository"

## Detailed Description

This sample shows how to get a resource from the repository. If the resource contains a file, it can be saved in a local file.

See also:
  jasperserver_ws_get

Definition in file jsget.c.

## Function Documentation

void get_resource | ( | char * | resource,
|  | char * | outfile |
| ) |  |  |

Sample function to download a resource from the repository.

Parameters:

  | resource | URI of the resource to get.
  | outfile | File destination of the resource content

Definition at line 41 of file jsget.c.

int main | ( | int | argc,
|  | char ** | argv |
| ) |  |  |

Definition at line 91 of file jsget.c.

## Variable Documentation

const char server[] = "http://127.0.0.1:8080/jasperserver/services/repository"

Definition at line 33 of file jsget.c.