Passing a File path as a parameter in Postman - url

So I am trying to pass a filerepo path as a url parameter in Postman, but it keeps saying its a bad request.
Example:
http://url/api/C:\File
I have also tried the url encoded version, but postman still says bad request:
http://url/api/C%3A%5CFile

Related

URL with ".profile" returning 403 error

Any URL that has in the query string '.profile' returns a 403 error.
For example:
example.com?data=user.profile
I can't just remove the string, because I'm using Google OAuth and upon callback, it's part of scopes.
example.com/callback/?code=###&scopes=https://www.googleapis.com/auth/userinfo.profile#
I guess it is considered a .profile file, but how can I make it behave as expected?

Using SOAP API, how to pass parameters to get Response?

This is my URL http://192.168.173.211:138/googleMaps.asmx/CustomerLocationgAddress_Add?. I am sending parameters like this, but in response I am getting error. The problem is "/" after CustomerLocationgAddress_Add?. How to remove "/"?
http://192.168.173.211:138/googleMaps.asmx/CustomerLocationgAddress_Add?/Zip=2717&First_Name=Sri&Last_Name=Vas&Address1=&Address2=&City=&State=&Zip=&Phone=8125137015&CustomerID=187181&Phone_Type1=&Company_Name=&IsDefault=True

Path parameter passing issue in readme.io

In readme.io, when I pass my path parameters in the base URL of the API, they are not reflected in the backend and the response generates an error. What syntax or another mistake I might be making?

How to use url encoded data in get method?

I am working on a restful service in asp.net MVC 4 Web API. I have a get method that getting a url encoded data as a parameter from URI. But, the thing is when I try this method from RESTClient (firefox tool), I am getting 404. And when i check the stack trace my url seems with non encoded parameter. You can see the example below:
Url format: /api/Applications/key
I am sending this:
/api/Applications/3baxYhYzpVGTrIIzs4CvGv4KIcIRHn5yqx%2F9a5PzTJxK4SWVcwi9GI6bib9pe1psk%2FdYeD0EaOdMHZpzWl%2Fbwg%3D%3D
In the response body, request url seems like this;
/api/Applications/3baxYhYzpVGTrIIzs4CvGv4KIcIRHn5yqx/9a5PzTJxK4SWVcwi9GI6bib9pe1psk/dYeD0EaOdMHZpzWl/bwg==
I am getting an error because of escape characters. I can use post but I want to go on with restful architecture.
Any advice will be appreciated.

pass URL-encoded URL to CURL

How do i pass a URL-encoded URL to CURL?
Ex:
curl "http://live.nwk5.net/secure/v.stream/playlist.m3u8?expiry=kFmysuf%2fLjOqgdXGJWqFQA%3d%3d"
This returns a invalid page.
if I URL decode the parameter as below, Im getting the expected response. Please Help.
curl "http://live.nwk5.net/secure/v.stream/playlist.m3u8?expiry=kFmysuf/LjOqgdXGJWqFQA=="
You're talking in vague terms. curl accepts and expects a URL. You need to provide the correct URL as curl can't guess what you otherwise intended.
If you have the URL encoded into weirdness, you have to first decode it to tell curl the correct URL.
URL-encoding a URL an extra time like you seem to have done partly (because otherwise you would also have encoded the slashes etc), is what I consider "encoded into weirdness".

Resources