# Fscrawler using fiddler from remote machine

**URL:** <https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969>\
**Category:** Elasticsearch\
**Created:** [June 12, 2017, 3:30am UTC](https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969 "2017-06-12T03:30:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![himalpatel](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@himalpatel](https://discuss.elastic.co/u/himalpatel)\
**Post date:** [June 12, 2017, 3:30am UTC](https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969/1 "2017-06-12T03:30:31Z")

</div>

If i want to call fscrawler from a remote machine and pass the file which is on remote machine as well, how can i do it ?

Here is what I am trying to do. I've a web job running on some server which will pick the file from blob storage and then call the fscrawler rest API and pass the content to it to index. But I am not sure How can i call FSCrawler REST API for upload.

Thanks  
Himal

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 12, 2017, 3:58am UTC](https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969/2 "2017-06-12T03:58:31Z")

</div>

Once you have the file let say in /temp you can upload it to FSCrawler:

```
curl -F "file=@/temp/test.txt" "http://127.0.0.1:8080/fscrawler/_upload"
```

---

<div class="post-metadata">

**Author:** ![himalpatel](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@himalpatel](https://discuss.elastic.co/u/himalpatel)\
**Post date:** [June 12, 2017, 7:00am UTC](https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969/3 "2017-06-12T07:00:45Z")

</div>

Hi,

Thanks for your reply. But does that mean that i need to copy the files into the temp folder ? I am planning to call the REST API remotely and pass the base64 content to it. Something similar to what mentioned here.

> <https://github.com/dadoonet/fscrawler/issues/251>

Also, When I try to do the same, I get "HTTP/1.1 415 Unsupported Media Type" error. Here is my request from fiddler.

POST : [http://elasticsearch:8080/fscrawler/\_upload](http://elasticsearch:8080/fscrawler/_upload)

User-Agent: Fiddler  
Host: elasticsearch:8080  
Content-Length: 105  
Content-Type: application/json

{  
"filename": "test.txt",  
"binary\_content": VGhpcyBpcyByYW5kb20gdGVzdCBmb3IgZWxhc3RpYyBzZWFyY2gu  
}

Thanks,  
Himal

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 12, 2017, 7:31am UTC](https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969/4 "2017-06-12T07:31:19Z")

</div>

It's not supported but this can be added as an option. But why not using ingest-attachment plugin instead?

---

<div class="post-metadata">

**Author:** ![himalpatel](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@himalpatel](https://discuss.elastic.co/u/himalpatel)\
**Post date:** [June 12, 2017, 7:42am UTC](https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969/5 "2017-06-12T07:42:55Z")

</div>

Got it. Was confused between ingest-attachment and elastic search. but seems like if i pass base64 data to ingest-attachment, that will index the content. Let me try it out. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 10, 2017, 7:45am UTC](https://discuss.elastic.co/t/fscrawler-using-fiddler-from-remote-machine/88969/6 "2017-07-10T07:45:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
