Here I want to send the value through URL in ColdFusion by using tag.
I know it in java but new to CF.
Can anyone please help me on it.
Thanks in Advance,
Swamy.
Parameters sent using query parameters ?x=1&y=2 can be read from CF's URL scope. So the parameters in my example would be #URL.x# would have a value of 1, and #URL.y# would have a value of 2.
Related
i just wanna know if there is a way to url encode an dynamic email variable in postman?
basically i want random names in all parts of the email for my collection run. For example test1#abc.com , ybc#asd.com.(which can be solved by using the email variable provided by postman) However, i also need to url encode that email so it will look something like this
test1%40abc.com
please let me know if this can be achieved with JS code snippet or any other easier method, Thanks in advance. :)
Add this line to your request's preRequest script:
pm.environment.set("randomEncodedEmail", encodeURIComponent(pm.variables.replaceIn('{{$randomEmail}}'))); to generate an encoded random email address.
Then you can just use {{randomEncodedEmail}} in your request to use it.
i have an api(web service) in django like this:
http://127.0.0.1:9000/api/back_office/appointments/days/?branch=1
that in swagger i want to input query parameter named branch but don't work this(all of my Apis have same problem!!).
before, i use older version of swagger and for enter query parameters use like --param_name syntax, but now in django-rest-swagger==2.1.1 don't work this syntax.
can anyone help me?
Perhaps i should use get_customizations in OpenAPIRenderer class?
Thanks in advance.
For adding query parameters to swagger please, go through this post
I need to get the Page ID from the Page URL. This is NOT from inside a page tab, that's easy. This is similar to what is being done here: http://findmyfbid.com
Any help would be appreciated as I have been searching for over an hour! Bonus points for showing how to do this in classic ASP. I have no issue getting signed requests & parsing them, the URL to ID portion is what is throwing me.
thanks :)
As noted above in 1st answer commments, that does work, but it's not the data that we want since it's an external url. THIS is the correct way to do it:
https://graph.facebook.com/v2.5/cocacola?access_token=[yourtoken]
OR
This works too:
https://graph.facebook.com/v2.5/https://www.facebook.com/cocacola?access_token=[yourtoken]
This is the way to do it: https://developers.facebook.com/docs/graph-api/reference/v2.0/url
if you are using a GET request, be sure to append access_token=appid|appsecret to the URL you are requesting and it will work.
Thanks for the tip to point me in the correct direction Alex!
i'm trying to get full path of the requested url in Django. I use a such url pattern:
('^', myawesomeview),
It works good for domain.com/hello, domain.com/hello/sdfsdfsd and even for domain.com/hello.php/sd""^some!bullshit.index.aspx (although, "^" is replaced with "%5E")
But when I try to use # in request (ex. http://127.0.0.1:8000/solid#url) it returns only "/sold". Is there any way to get the full path without ANY changes or replacements?
BTW, I'getting url with return HttpResponse(request.path)
Thanks in advance.
The part of URI separated by '#' sign is called a fragment identifier. Its sense is to be processed on client side only, and not to be passed to server. So if you really need this, you have to process it with JS, for example, and pass it as a usual parameter. Otherwise, this information will never be sent to Django.
I need to receive some data from an URL every 30 seconds.
I wanted to use camel and jetty:http for it. I found one problem - to get the data from URL i need to send post variables with login and password.
How to do this?
I've been looking for an example, but i didn't found anything.
Could you help me?
And additionally question:
if i want to make some action for every 30 seconds, my code should looks like this?
from("file:src/data?noop=true&delay=30000")
.to("file:src/new");
thanks for help
if you want post data through http component, you can using form_urlencoded content type:
from("direct:postTest")
.setHeader(Exchange.HTTP_METHOD, constant("POST"))
.setHeader(Exchange.CONTENT_TYPE, constant(MediaType.APPLICATION_FORM_URLENCODED))
.setBody(simple("text=a&user=ethan"))
.to("http://someurl");