# Post to URL with query parameters

**URL:** <https://forum.juce.com/t/post-to-url-with-query-parameters/26006>\
**Category:** General JUCE discussion\
**Created:** [January 17, 2018, 11:22am UTC](https://forum.juce.com/t/post-to-url-with-query-parameters/26006 "2018-01-17T11:22:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikolaiaudios](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@nikolaiaudios](https://forum.juce.com/u/nikolaiaudios)\
**Post date:** [January 17, 2018, 11:22am UTC](https://forum.juce.com/t/post-to-url-with-query-parameters/26006/1 "2018-01-17T11:22:06Z")

</div>

Hi  
I may be way off here, but is it so that when I use URL / WebInputstream to post/upload data it strips of the query parameters of the URL ?  
I’m trying to upload files to Vimeo, and the URL that I need to post to looks like this:

> [https://1512476430.cloud.vimeo.com/upload?ticket\_id=127726108&video\_file\_id=913996453&signature=ea47ad6af92459b3c548ceae0359a181&v6=1](https://1512476430.cloud.vimeo.com/upload?ticket_id=127726108&video_file_id=913996453&signature=ea47ad6af92459b3c548ceae0359a181&v6=1)

and then, according to the API, the files should be sent to this url using POST. But when I enable POST in Juce, it seems to move the parameters to the form/data.  
Sorry if im not correct on this.

Here is the Vimeo API:  
[https://developer.vimeo.com/api/upload/videos#upload-your-video](https://developer.vimeo.com/api/upload/videos#upload-your-video)

---

<div class="post-metadata">

**Author:** ![nikolaiaudios](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@nikolaiaudios](https://forum.juce.com/u/nikolaiaudios)\
**Post date:** [January 17, 2018, 1:51pm UTC](https://forum.juce.com/t/post-to-url-with-query-parameters/26006/2 "2018-01-17T13:51:23Z")

</div>

Line 78 of juce\_win32\_Network.cpp:

> ```
> String address = url.toString (! isPost);
> 
> ```

Changed it to

> ```
> String address = url.toString (true);
> 
> ```

I understand that this function was trying to help us by cleaning the url address. But nothanks

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [January 24, 2018, 3:16pm UTC](https://forum.juce.com/t/post-to-url-with-query-parameters/26006/3 "2018-01-24T15:16:31Z")

</div>

I think it is part of the specification that, when using POST, the parameters should be passed as data rather than in the URL itself.

Perhaps JUCE should be improved to be flexible enough to still have the parameters in the URL _and_ send the file with POST
