http-headers

Azure: List OS Images

我们两清 提交于 2019-12-05 18:01:29
Im new to windows azure, Ive looked to this documentation , to me it works, Listing Images on gallery. https://management.core.windows.net/subscription-id/services/images But this isnt what Im looking for, Is there a way to list the My Images on my account and not the images on gallery. David Makogon If you run the PowerShell cmdlet Get-AzureVMImage , you'll see all images. As stated by @Gaurav, The ones that correlate to My Images have a PublisherName of User . So, again, using PowerShell, here's how to see just your images by piping to Where-Object : Get-AzureVMImage | Where-Object { $_

Redirection and session data transfer to another server/domain after login

心已入冬 提交于 2019-12-05 17:19:29
After some time of searching and reading docs I've decided to ask you guys. So, scenario is "simple": User goes to https://Domain1.com , enters his credentials, tries to login. After successful login, based on user type and other info from DB, Domain1 server should redirect user to another CF server at https://Domain2.com . So far, no problem, using HTTP 301 and cfheader/cflocation I'm redirecting user to second machine, BUT he has to repeatlogin procedure which is unacceptable by our management. Is there any good and secure practice which is used to "transfer" client together with session

HTTP: Why is wrong sending username and password in get request?

拈花ヽ惹草 提交于 2019-12-05 17:07:00
Genaral practice is when you login, or do something else that requires your username and password, you send it in the body of post request. Also for added security https should be used. In get request these parameters are sent as a part of URL. But in https both body and headers are encrypted, as i understand. So in theory, whether you use https post or get for sending, your data are safe..., in one case attacker will have to decript your header and in other your body. So my question is, if this is all true, how is post more secure? Aside what others have already written there is an additional

RestKit 0.20.0pre5: HTTP headers per request

淺唱寂寞╮ 提交于 2019-12-05 16:53:30
i want to send an If-Modified-Since http header with a GET request, issued by [RKObjectManager getObjectsAtPath:...] . the migration guide tells that i can set only "global" default request headers for an RKObjectManager instance: RKObjectManager* objectManager = [RKObjectManager managerWithBaseURLString:url]; [objectManager.HTTPClient setDefaultHeader:@"If-Modified-Since" value:@"Sat, 29 Dec 2012 19:43:31 GMT"]; since i want to keep a centralized RKObjetManager instance (via [RKObjectManager sharedManaged] ), this is not really a good option. is creating a specific RKObjectManager before each

Is Content-Length or Transfer-Encoding is mandatory in a response when it has body

笑着哭i 提交于 2019-12-05 16:10:10
If the response has a body / can have body (i.e status code is not 204 or 304), should it always have either content-length or Transfer-Encoding in the response header. In the spec it is not very clear. In my scenario I have a body without content-length or transfer encoding header, so the curl is keep on waiting no chunk, no close, no size. Assume close to signal end while other clients (like postman) are getting the content without hanging. Transfer-Encoding is a HTTP/1.1 addition. So, that version of the protocol seems relevant here. It states about Content-Length : it SHOULD be sent

Adding headers to Spring controllers

做~自己de王妃 提交于 2019-12-05 15:43:35
I know this question is very similar to this one, but I feel its different and specific enough to warrant its own question here. I've just inherited a Java web app project from a sole developer who left no documentation behind. Its a Spring MVC app with a basic package structure as follows: com.ourOrg.app.controllers ImageController ProgramController UserController com.ourOrg.app.otherPackages Each Controller class is just a POJO annotated with @Controller and @RequestMapping("/blah") . For instance: @Controller @RequestMapping("/images") public class ImageController() { @RequestMapping(value=

Defining CharSet for static HTML files

半腔热情 提交于 2019-12-05 15:43:35
I just tried several times to define character set for static files served from Google App Engine and failed miserably. File does contain correct meta-equiv tag in header section of file: <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> But it's not being passed as header, browser needs to pick it up from the actual document. Naturally if I use script (or Python Google App Engine program) then I can get it delivered correctly as response header. Content-Type: text/html; charset=UTF-8 I tried to add to app.yaml file rows: - url: / static_files: root/create.html upload: root

CORS preflight request returning “403 Forbidden”; subsequent request then only sending in Chrome

試著忘記壹切 提交于 2019-12-05 15:42:23
After failure using pluploader in this question , I'm now trying FineUploader . After reading up on CORS, I've implemented various headers on my IIS6 server. What seems to happen is that my script fires the first ( preflight ) authorisation request, which fails, but Chrome allows the second ( standard ) request to send anyway - Firefox does not. I presume this is actually a bug on behalf of Chrome, but at least it has allowed me to work out that my script is probably working correctly. Here is the first (preflight) request as seen in Chrome and FF: OPTIONS /frog/LOTS/upload/php.php HTTP/1.1

BasicNetwork.performRequest: Unexpected response code 401 android Volley library

孤者浪人 提交于 2019-12-05 15:20:31
Iam calling web service in android . in that i want to call the URL i am not sending any params to the server, just calling the URL , But its getting Error like [10520] BasicNetwork.performRequest: Unexpected response code 401 my code is RequestQueue queue = Volley.newRequestQueue(getActivity()); JsonObjectRequest getRequest = new JsonObjectRequest(Request.Method.GET, Server.URL, null, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { // display response hideProgressDialog(); } }, new Response.ErrorListener() { @Override public void onErrorResponse

IE doesn't follow redirect, gives “Internet Explorer cannot display the webpage”

喜你入骨 提交于 2019-12-05 15:18:43
问题 I have a form with a few fields. When you submit the form, the server responds with a redirect (HTTP 302). When the form is submitted, if there is an <input type=file> field, IE doesn't follow the redirect, but instead gives an error: "Internet Explorer cannot display the webpage". If there is no <input type=file> field, then it does follow the redirect as expected. The HTTP 302 Response is exactly the same in both cases, differing only by the timestamp of the response. I'm experiencing this